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"           pageEncoding="ISO-8859-1"%>           <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "            /TR/html4/   loose.dtd">          <html>               <head>                   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">                   <title>Login</title>               </head>              <body>                 <form method="post" action="loginController&quo

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 2.     org.springframework.asm-3.0.6.RELEASE.jar 3.     org.springframework.aspects-3.0.6.RELEASE.jar 4.     org.springframework.beans-3.0.6.RELEASE.jar 5.     org.springframework.context-3.0.6.RELEASE.jar 6. 7.     org.springframework.core-3.0.6.RELEASE.jar 8.     org.springframework.expression-3.0.6.RELEASE.jar 9.     org.springframework.instrument-3.0.6.RELEASE.jar 10.   org.springframework.instrument.tomcat-3.0.6.RELEASE.jar 11.   org.springframework.jdbc-3.0.6.RELEASE.jar 12.   org.springframework.jms-3.0.6.RELEASE.jar 13.   org.springframework.orm-3.0.6.RELEASE.jar 14.   org.springfr