RSS

11. December 2008

0 Comments

Microsoft Interview Questions related to ADO.NET

1. What is a DataReader? A DataReader is a connected results set, meaning you have to stay connected with the server for the entire time you’re accessing data through it. It’s forward only and read only, but has the advantage of being much faster and more efficient then using a DataSet. 2. What is a DataSet? A DataSet is a [...]

Read Full Article

26. June 2008

0 Comments

Create Simple Hibernate Application

This tutorial demonostrates how to create simple Hibernate Application. For this tutorial you need two libraries. Add Hibernate library file to your project and add Java DB Driver library also. This tutorial shows step-by-step method to create Hibernate Application. In this tutorial you will create one Java Bean, One hibernate-mapping; a xml file, One hibernate-config; [...]

Read Full Article

25. June 2008

0 Comments

Simple Ajax implementation using different frameworks

AJAX enables a dynamic, asynchronous Web experience without the need for page refreshes. Find out how this combination of technologies that you already know and love can reinvent your Web development. Wouldn’t it be nice if you could turn your plain old Web pages into something more exciting? Isn’t it time to inject some life into [...]

Read Full Article

25. June 2008

1 Comment

CRUD(Create, Read, Update, Delete) using Struts

This simple CRUD application is based on Struts2 web framework. Used the most easy way to create the appliation. This application demonstrates a very simple application that handles your typical CRUD - Create, Retrieve, Update, Delete operations. It is simple News Portal Application using Struts, JSP, Servlets. CRUD for Admin purpose only. View/Edit/Delete functions are implemented [...]

Read Full Article

25. June 2008

0 Comments

Tableless forms: Advanced

I am always looking for easy ways to use less tables in my markup. When designing a website I always aim for no tables but in a web application I may cheat from time to time. Some time ago, thanks to an article on quirksmode, I began creating tableless forms. This trick was great for simple [...]

Read Full Article

25. June 2008

0 Comments

Prevent Denial of Service (DOS) attacks in your web application

Web services are the most attractive target for hackers because even a pre-school hacker can bring down a server by repeatedly calling a web service which does expensive work. Ajax Start Pages like Pageflakes are the best target for such DOS attack because if you just visit the homepage repeatedly without preserving cookie, every hit [...]

Read Full Article

25. June 2008

0 Comments

Simple login using JSF

Of course there are many ways to implement a login in a JSF aplication, you can use JAAS, you can use a Servlet Filter, but this one I think is one of the best approaches, of course, in a real application, I usually combine it with some AOP and annotations, but AOP and annotations are [...]

Read Full Article

25. June 2008

0 Comments

SQL in Java vs SQL in .NET/C#

For .NET use: using System.Data; using System.Data.SqlClient; For java use: import java.sql.*; You will also have to add an ODBC Data Source as follows 1. Open the ODBC Data Source Administrator control panel 2. Select the User DSN tab 3. Click Add 4. Scroll down to end of list and choose SQL [...]

Read Full Article

25. June 2008

0 Comments

19 Deadly Sins of Software Security

This is based on the book 19 Deadly Sins of Software Security Buffer Overflows Format String problems Integer range errors SQL injection Command injection Failure to handle errors Cross-site scripting Failing to protect network traffic Use of "magic" URLs and hidden forms Improper use of SSL Use of weak password-based systems Failing to store and protect data securely Information leakage Improper file access Trusting network address information Race conditions (improper [...]

Read Full Article

25. June 2008

0 Comments

Maintaining state in Servlet (demo)

Three scopes: 1. request scope: destroyed when servlet finishes processing request 2. session scope: destroyed when user closes browser [...]

Read Full Article
Page 1 of 3123»