Answer following questions. 1. Define Servlet and write name of interface/class that must be inherited to create servlet. 2. Describe role of web.xml file in servlet. 3. List range of status codes and their categorization. 4. Write use of sendRedirect method and getWriter method in Servlet. 5. Draw JSP lifecycle. 6. Write syntax and use of EL in JSP. 7. Describe <jsp:useBean> tag in JSP.
Explain methods that are used to retrieve user data in a Servlet. Write a program in which user inserts login detail and Servlet reads entered detail and print the same in response.
[7 marks]List and Explain methods of HttpServletRequest to read request headers.
[7 marks]Explain ServletConfig and ServletContext class. Differentiate usage of both the class with example.
[7 marks]DescribeRequestDispatcher interface and its methods facilitating Servlet collaboration with example.
[7 marks]Explain purpose of HttpSession interface in Servlet Programming to handle session with example.
[7 marks]Explain purpose of Cookie class in Servlet Programming to handle cookie with example.
[7 marks]Describe Http Response headers and give examples of setting different response headers.
[7 marks]Explain ServletContextEvent, ServletContextListener and Listener methods with example.
[7 marks]Describe declarative security and explain steps to implement one type of declarative security.
[7 marks]Explain HttpSessionEvent, HttpSessionListener and Listener methods with example.
[7 marks]Describe programmatic security and explain handling all security programmatically.
[7 marks]Explain MVC architecture and its implementation with Servlet and JSP.
[7 marks]List JSP directives. Discuss the purpose and syntax of these directives along with their attributes with example.
[7 marks]1/2
[ marks]Explain database connectivity in servlet using JDBC with example.
[7 marks]List JSP implicit objects and explain any three implicit objects with example. 2/2
[7 marks]