A web application takes a name as input and on submit it show a hello<name> page where <name> is taken from the request, it shows the start time and a logout button on clicking this button it should show a logout page with thank you<name> and duration of usage(use session).
To implement the above program in servlets following folder structure is to be followed:
In the src folder all the required files for our application should be kept.
Below snapshots shows u detail of all the programs
home.html
index.html
op.html
res.html
FirstServlet.java
logout.java
After Compilation of your servlets keep the .class files in classes folder as shown below
Following are the images and css files:
The WEB-INF folder structure is as follows
The output of servlet is as follows:
No comments:
Post a Comment