Home > Articles

Working with Servlets

  • Print
  • + Share This
This chapter is from the book

Quiz

  1. What are the two ways of initializing a Java servlet?

  2. What are the three methods of an HttpServlet that you can override to write your own servlet?

  3. How do you retrieve the values of a multiple-selection box selected by the user in an HTML form submitted to your servlet?

  4. What are the different ways of handling sessions in Java servlets?

  5. How do you register a Java servlet in the deployment descriptor file web.xml?

  6. What is the method used in URL rewriting to enable the WebLogic Server to append the session identifier information to the data sent by the servlet?

  7. How do you retrieve data or objects stored in a session using the HttpSession API?

  8. How can you increase the timeout duration for an HttpSession?

  • + Share This
  • 🔖 Save To Your Account