5.10 SUMMARY

We have seen the importance of server side in a typical dynamic web application. In the Java world, the concept of server side has been introduced through Servlet technology which has its own lifecyle, supported within the context of the Servlet container as part of an application server. Servlets can act as the Controller in an MVC application. We have also seen how they can react to events (listeners), work in a session and leverage Cookies within an application.

EXERCISES
  1. Name some of the practical ways which Init() can be useful in the context of a Servlet.
  2. Examine the differences between GenericServlet and HttpServlet.
  3. What are the differences between Request attribute and Request parameter?
  4. What are the ways to create a session? ...

Get Web Technology: Theory and Practice now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.