Home Servlets Simple Web Application using Servlet
Questions:Ask|Latest

 
 

Share on Google+Share on Google+

Simple Web Application using Servlet

Advertisement
In this section, we have developed a simple web application in Servlet .

Simple Web Application using Servlet

     

In this section, we have developed a simple web application in Servlet . In this application user can add, update and delete all the user information. We run this application on Apache Tomcat Server. To Download the latest version of  Server click on the link http://www.roseindia.net/struts/struts2/struts-2-download.shtml. Download the code and Run the application on browser with the  url. http://localhost:8080/servlet/index.jsp

Brief description of the flow of the application: 

1) This application having a link "Add New User" to add new User in the database.
2) In this application having two button's  "Edit" and "Delete".
 "Edit" : This button updates the user Information and 
 "Delete": This button Deletes the user information.
     
Step 1: Create a Home Page ("home.jsp") to view all the user.
      

   
Step:2 Create a web page ("addUser.jsp")  to add the new user.
   
    

  
Step:3 Create a web page ("edit.jsp")  to edit  the user.
     

 

Download the full source code

 

Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: December 14, 2008

Related Tutorials

Ask Questions?    Discuss: Simple Web Application using Servlet   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
testuser
June 25, 2011
where is the database file

please provide the db file for this simple project
saraswathi
January 3, 2012
.net

i want .net code for userlogin page
amiral
March 7, 2012
google cloud sql

Iam doing project in google cloud sql, this is the first time to do it"google cloud sql", i want to build online exam using google cloud sql, but i don't know how to be started. in my plan use netbeans with Google cloud sql.and how to connect between netbeans and google cloud sql
vinod
April 21, 2012
how to write servlets with using web-inf

hi..... how to write servlet programes with using web.xml file
vinayalle7
April 10, 2012
how create new user login page using java

plz help out 4 dis question hoping so
vinay
April 10, 2012
java

how create new user login page using java coding
alekya
October 27, 2012
jsp code problem

how do the above code works?could please nayone explain me regarding the code.i am unable to edit the values it is showing an error array index out of bounds exception.Please somebody help me out...thanks in advance
alekya
October 27, 2012
jsp code problem

how do the above code works?could please nayone explain me regarding the code.i am unable to edit the values it is showing an error array index out of bounds exception.Please somebody help me out...thanks in advance
bass
November 27, 2012
About your simple application

sorry but whene i run your Simple Web Application using Servlet with glassfish i have blank IExplorer page but not error cant you help to resolv this.
kalai
April 25, 2013
Passing array list from servalet to jsp

I m just copied and past the above code the array list always shows null value
ardy
June 17, 2013
database file

Hy Sir Deepak, i'm ardy.. currently studying a degree course.. now i'm doing a project exactly like you did in "Simple Web Application using Servlet".. Your source code is so great.. but it was blank.. because no records or the users have been made in MySQL database.. therefore, could you please help me regarding on how to do the database and the table of the in MySQL...(step by step)... i've tried to make it but it was unsuccessful and the page still shows blank (no users are added to the page).. so please help me ASAP sir..
shwetha
December 21, 2011
j2ee project

i need project source code.the project should include following modules: 1.student registration 2.branch selection 3.subject allocation 4.student attendance record(including bunk fine),etc.. as is done in an engg college.the project should contain two modes:user and
query
February 23, 2012
project not working

when i am running index.jsp, it is showing blank page..
DMCA.com