2080 2

CSC419 ยท 2080 ยท 10 marks

How does JSP differ from Servlet and show the life cycle of Servlet? How do you create and read the cookies and session using JSP? Illustrate with an example.

How does JSP differ from Servlet and show the life cycle of Servlet? How do you create and read the cookies and session using JSP? Illustrate with an example.[10]

Advanced Java ProgrammingChapter 7: Servlets and Java Server pagesServlet vs JSP, JSP Access Model, JSP Syntax

--- Feature Servlet JSP (JavaServer Pages) --------- Nature Java class that generates HTML HTML page that embeds Java code Extension .java (compiled to .class) .jsp (auto-compiled by container) Writing Style HTML written inside out.println() statements Java code written inside <% % tags Compilati...