1. Servlets. 5 1 Servlet Model. 5 1.1 Http Method : HttpServlet abstract class. 5 1.2 Http Method. 5 1.3 Parameter, Header. 5 1.4 Response 6 1.5 Redirect 6 1.6 Three Web Scopes : Request, Session, Context 6 1.7 Life-Cycle : Servlet interface. 8 1.8 RequestDispatcher : Include / Forward. 8 2 Servlet Container Model. 11 2.1 Servlet Context Init Parameter : <context-param> 11 2.2 Listener : <listener> 11 2.3 Distributable Application. 12 3 Structure & Deployment. 13 3.1 Application Structure 13 3.2 <servlet>, <servlet-mapping> 13 4 Session Management. 15 4.1 Session 15 4.2 Session Invalidating : <session-config> 15 4.3 Session Tracking. 15 5 Server-Side Exception. 17 5.1 Error Page. 17 5.2 <error-page> 17 5.3 senderror, setstatus 18 5.4 log. 18 6 Security. 19 6.1. 19 6.2 <security-role-ref>, <security-constraint>, <security-role> 19 6.3 Authentication Type : BASIC, DIGEST, CLIENT-CERT, FORM 21 6.4 <login-config> 23 7 Thread-safe Servlets. 24 2. JSPs. 26 8 The JSP Model 26
8.1 JSP Tag Syntax 26 8.2 JSP Tag 26 8.3 page Directive 26 8.4 Equivalent XML-based Tag. 27 8.5 JSP Life-Cycle 27 8.6 Implicit Object 28 8.7 Sciptlet Syntax. 29 9 Reusable Web Component. 30 9.1 include Directive 30 9.2 include Action 30 10 JavaBeans 31 10.1 <jsp:usebean> 31 10.2 <jsp:setproperty>, <jsp:getproperty> 32 10.3 JSP & Servlet Scope 32 11 Custom Tag. 33 11.1 Step 1 : Tag Handler (java file) 33 11.2 Step 2 : Tag Library Descriptor (tld file) - <taglib>, <listener>, <tag>, <attribute> 35 11.3 Step 3 : DD (web.xml) - <taglib> 36 11.4 Step 4 : taglib Directive (jsp page) - <%@taglib %> 36 11.5 Step 5 : Using Custom Tag (jsp page) - <prefix:tagname> 36 12 J2EE Design Pattern. 37 3. Design Pattern. 39 1 Value Objects 39 2 Model-View-Control(MVC). 40 3 Data Access Object (DAO). 43 4 Business Delegate. 44 4.. 46 1 Servlet API 46 1.1 Servlet Interface 46 1.2 ServletConfig Interface 46 1.3 ServletContext Interface 46 1.4 ServletRequest Interface 47 1.5 ServletResponse Interface 49 1.6 abstract class GenericServlet implements Servlet, ServletConfig, Serializable 50 1.7 abstract class HttpServlet extends GenericServlet 50 1.8 HttpServletRequest Interface 50
1.9 HttpServletResponse Interface 52 1.10 HttpSession Interface 54 1.11 RequestDispatcher Interface 55 1.12 SingleThreadModel Interface 55 1.13 ServletContextListener Interface 55 1.14 ServletContextAttributeListener Interface 55 1.15 HttpSessionListener Interface 55 1.16 HttpSessionActivationListener Interface 56 1.17 HttpSessionAttributeListener Interface 56 1.18 HttpSessionBindingListener Interface 56 2 web-app_2_3.dtd. 57 3 Web-app_2_3.dtd & (web.xml) 66 4 web-jsptaglibrary_1_2_dtd. (tld file) 69
isrequestedsessionidfromcookie
isrequestedsessionidfromurl