BCA Syllabus – Web Programming Lab
5.5 Web Programming Lab
Third Year Part III Group A Fifth Semester Subject Code:
1. Create a GenericServlet Class and Print "Hello" to the browser using service () method?
2. Create a HttpServlet Class and Print "Hi World" to the browser using doGet() Method?
3. Create a HttpServlet Class and Print "Hello World" to the browser using doPost() Method?
4. Create a HttpServlet Class and Create a Session inside the doGet() method?
5. Create a GenericServlet Class and Create a Session inside the service() method?
6. Create a JSP file and Print "Hello Welcome" in BOLD text?
7. Create two JSP files called a.jsp and b.jsp then forward b.jsp file from a.jsp ?
8.Create two JSP files called a.jsp and b.jsp then include b.jsp file at a.jsp using Directives (@ include)?
9.Create two JSP files called a.jsp and b.jsp then include b.jsp file at a.jsp using Action Include (jsp:include)?
10.What is server side forward and what is client side forward? How do you achieve these in your JSPs?
11.Create a Servlet file call JSP file from that created Servlet?
12.Create the HTML form with first_name and last_name as control elements and get hose parameters at your JSP file and Print the value ?
13.Can you print the current date using DATE class at your JSP?
14.How do you add the String Object like(String strVar="hi") to Session and get the object from Session and print it at your JSP?
15.How do you get an object in your JSP that object has been added in your pervoius JSP?
Leave a Comment