Você está na página 1de 2

Sankalchand Patel College of Engineering, Visnagar

CE/IT Department
List of Practical Problems

Class: 7th CE-I


Subject: Web Technology & Programming
List of Problem for Practical:

1. User Authentication with Servlet:


• Create a HTML page login.htm, success.htm & failure.htm. Use login.htm page to read a user name
and password. After the user verification response the user success.htm or failure.htm.
• Include a one CSS file to formatting all web pages.
• Write a one servlet class Login.java to verify the user validation with predefines user data in
database.
• Include java script in login.htm to verify user name and password textbox not a blank submitted.
• Observe the GET/POST methods for HTTP request.

2. User Registration with JSP/JavaBean:


• Create a JSP page registartion.jsp, success.jsp, header.jsp & footer.jsp.
• Include header.jsp & footer.jsp in registration.jsp & success.jsp page using JSP page directive. Use
CSS file for page formatting base on your formatting style.
• Use JSP scriplets tag to insert the user data into database & use Java Bean to retrieve user data from
request.
• On success display the user name on success.jsp page with welcome message using Request
Dispatching.
• Include java script in registration.htm to verify the all data field base on requirement (e.g. username
not contain a space, password length more than six characters…).

3. User Authorization using Session


• Create a JSP page login.jsp & profile.jsp, header.jsp & footer.jsp.
• Include header.jsp & footer.jsp in login.jsp & profile.jsp page using JSP page directive. Use CSS file
for every page formatting base on your formatting style.
• On successfully login, store the user name in session, than forward request on profile.jsp.
• On profile.jsp page retrieve all the user data from database base on authorize user.
• On profile.jsp, if user unauthorized then forward to login.jsp for authentication.
• On logout invalidate the current session than forward to login.jsp

4. User Authorization using Filter & Cookies


• Create a JSP page login.jsp & profile.jsp, manageUser.jsp, header.jsp & footer.jsp.
• Include header.jsp & footer.jsp in login.jsp & profile.jsp page using JSP page directive. Use CSS file
for every page formatting base on your formatting style.
• Include a one checkbox in login.jsp as a ‘Remember me on this computer’.
• On successfully login, if user selects a checkbox to remember on this computer than add Cookies
username & password to response object for current domain and set the time limit. Also store the
username and user role in current session for further authorization. If user role is admin than forward
to manageUser.jsp otherwise forward on profile.jsp. Store the all admin pages in ‘Admin’ folder and
user pages in ‘User’ folder
• Create filter LoggingFilter.java to check the user role and base on user role allowed access on
required page otherwise redirect on login.jsp.
• Maintain a session log using the HttpSessionListener, store user name and remote IP Address/host
name.

5. List out users using Updatable ResultSet


• Create a JSP page manageUser.jsp to list out the all user with the separate ‘Detail’ button per user.
• When click on ‘Detail’ button profile.jsp page display with all user information to EDIT/UPDATE.
• Use updatable ResultSet to change the user detail.

6. List out users using XML Parsing


• Create a file userDetail.xml which contain all user detail (username, password, address, contact no
etc.)
• Use a DOM/SAX Parser to retrieve data from userDetail.xml and display on userDetail.jsp page.

7. Deploy the project on Tomcat Server


• Build your WAR file for your all project document.
• Upload the Project WAR file on Web Server.
• Test your entire function requirement in both case Success/Failure Scenarios working properly or
not.

*********X**********X**********X**********X**********X**********X**********X*********

Você também pode gostar