You are on page 1of 4

Assignment-3.

1
Q1. What are the advantages of JSP over Static HTML? Also Explain lifecycle of a JSP
Q2. Explain the Directory structure of JSP with the help of appropriate example.
Q3. Write a program to access database using Servlet.
Q4. Create simple registration form in Servlet.
Q5. Example to Connect Java Application with Oracle database.

Assignment-3.2
Q1. Write about JSP declaration, JSP directives and JSP Scriptlets?
Q2. Write a note on JSTL. Also discuss JSP include tag and page tag?
Q3. Write a program can serve as a template when you need to create your own JDBC
Q4. Write source code structure of a Servlet to print "Hello World".
Q5. Write Servlet program to handle input given by web browser using get method.

Assignment-3.3
Q1. Explain the Directory structure of JSP with the help of appropriate example
Q2. Write about JSP declaration, JSP directives and JSP Script lets?
Q3. Write a Servlet program to handle input given by web browser using post method.
Q4. Write a Servlet program to handle input given by web browser for checkbox button.
Q5. Write HTTP Header Response Example

Assignment-3.4
Q1. Explain life cycle of a Java Servlet with each method explained in detail.
Q2. What is MVC Architecture? Explain its relevance in programming.
Q3. Write a program clearly explaining the life cycle of a Servlet.
Q4. Write a program to create a log in form without using database.
Q5. Write a program to store the name of the user using cookies object and accessing it in
another Servlet.(Session tracking using cookies) (2)
Assignment-3.5
Q1. Mention all the main differences between CGI Scripts and Servlet.
Q2. How web container handles Servlet Request?
Q3. Write a program clearly explaining the life cycle of a Servlet.
Q4. Write a program to store the name of the user using hidden form fields.
Q4. Write a program to store the name of the user using URL re-writing. (3)

Assignment-3.6
Q1. Explain life cycle of a Java Servlet with each method explained in detail. (2)
Q2. Differentiate: (2)
 Get and Post Method.
 GenericServlet and HttpServlet.
Q3. Write a program to store the name of the user using HTTP session. (3)
Q4. Write a program to create a log in form without using database. (2)
Q5. Explain Servlet chaining using send Redirect and also a write a program for it. (3)

Assignment-3.7

Q1. Create a program to store the student information in a file.


Q2. Create a program to use Externalizable interface to save only specific fields of in the
file of Employee object.
Q3. Create a program to highlight the usage of inheritance in serialization.
Q4. What is the role of using of transient keyword in context to serialization?
Q5. Explain the role of marker interface in java. Name various marker interfaces used.
Assignment-3.8

Q1. Write a program to access database using Servlet.


Q2. Create simple registration form in Servlet.
Q3. Example to Connect Java Application with Oracle database
Q4. What is the advantages of JSP over Pure Servlet?
Q5. Explain lifecycle of a JSP.
Assignment-3.9
Q1. Write source code structure of a Servlet to print Hello World:

Q2. Write Servlet program to handle input given by web browser using get method.

Q3. What is a script let in JSP and what is its syntax?

Q4. What is JSP declarations?

Q5. What are JSP Directives?

Assignment-3.10

Q1. Write Servlet program to handle input given by web browser using post method.

Q2. Write Servlet program to handle input given by web browser for checkbox button.

Q3. Write HTTP Header Response Example.

Q4. What are the types of directive tags?

Q5. What is a page directive?

Assignment-3.11

Q1. Write program to create login page using Servlet.


Q2. Write a program using Servlet to make entry of row in database
Q3. Discuss Servlet life cycle
Q4. What is JSTL?
Q5. What the different types of JSTL tags are ?
Assignment-3.12

Q1. Discuss in detail the purpose of XML in a web service?


Q2. What is XML Parsing? Explain the advantages and interfaces of DOM parser.
Q3. Write a note on XML parser and DOM parser?
Q4. Discuss Generic Servlet and Http Servlet and also discuss linking Servlet to HTML?
Q5. Explain the lifecycle of a JSP page Also mention the advantage of JSP over Servlet

You might also like