Skip to main content


Showing posts from November, 2011

Creation of simple login application using Servlet, Testing the application using JUnit, and Deloying the application into Apache server.

Here I am using Eclipse for developing this application. In this application i hard coded user name and password. In real application these values are fetched from database.

1. Create a new dynamic web project and name it as ServletStudy.

2. Inside the WebContent folder ,create a index.jsp file and include the following code.

      <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
          <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" " 
          /TR/html4/   loose.dtd">
                  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
                <form method="post" action="loginController">

Hello world application in spring using xml bean configuration.

1.Download the spring3.0 jars from following location.

2.Create a new Java project and include the following jars into your java build path. 

1.  org.springframework.aop-3.0.6.RELEASE.jar…