All Example

Lab 1: Applications-An Overview
1. Write a program to display a “Hello World” message in the Web browser
2. Write a program using JSP to calculate the sum of numbers from 1 to 25
3. Write a program to display the current date and the session Id
4. Write a program welcoming the user to Online Banking Website
5. Write a program using JSP to display the message “Hello” ten times
6. Write a program using JSP to display the hostname and the path of the JSP file

Lab 2: Using Java Server Pages (JSP) Tags
1. Write a program using the request.getParameter() method
2. Write a program that uses the response.setHeader()method to display the date
3. Write a program to retrieve the name and IP address of a remote computer.
4. Write a program that passes three parameters to a JSP page.

Lab 3 Using JSP Scriptlet
1. Write a program to display the multiples of two
2. Write a program to display the session ID, creation time, and the last accessed time of the Web page
3. Build a login page for online banking, accepting the user name and password.

Lab 4 Using JavaBeans in Java Server Pages

1. Write a program to display a withdrawal amount screen to the user
2. Write a program to display the withdrawal status to the user

Lab 5 JSP Application Models
1. Write a program to include an HTML file in a JSP page using RequestDispatcher interface method
2. Write a program to display an error message to the user if an exception occurs in the JSP page
3. Write a program to include an HTML file in a JSP page using RequestDispatcher interface method
4. Write a program to display an error message to the user if an exception occurs in the JSP page

Lab 6 Session Management
1. Write a program to display an online shopping cart Web page with a drop down menu
2. Write a program to count and display the number of active sessions connected to the Tomcat server

Lab 7 Java Database Connectivity
1. Write a program to display a login page to the user
2. Write a program to display a user details form to the user
3. Write a program to display the user details, with delete button for each detail

Lab 8 Creating Web Applications

1. Write a program to add a link requesting for a bank chequebook
2. Write a program to add a link requesting for an Account closure


Lab 9 Introduction to Struts

1. Create a struts-blank.war blank application
2. Create a Login form using strut

Lab 10 Working with User Input

1. Create a user details page

Lab 11 Using Models and ActionForms

1. Write a program to input the new registration details to the Database

Others
1. Sample JSP Date Combo
2. Simple JSP Tutorial
3. JSP Sessions Example
4. JSP CheckBox
5. User Login in JSP
Read more →