User Tools

Site Tools


jsp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
jsp [2008/10/21 15:30] roumanijsp [2008/10/29 22:16] (current) roumani
Line 6: Line 6:
  
   * The controller must control and dispatch by relying on the Model and forwarding to a JSP   * The controller must control and dispatch by relying on the Model and forwarding to a JSP
-  * Tomcat provides three ''Map<String,Object>'' places to hold data with three levels of scoperequest, session, and application.+  * Tomcat provides three ''Map<String,Object>'' data structures to hold data with three levels of persistencecontext, session, and request. A fourth level (available only to JSP servlets is the page)
   * State can be captured using the session object. Its API allows us to detect the start of new sessions.   * State can be captured using the session object. Its API allows us to detect the start of new sessions.
   * The model is best packaged as a Java package.   * The model is best packaged as a Java package.
Line 12: Line 12:
   * The servlet's ''init'' method is responsible for instantiating the model and storing it in the application scope.   * The servlet's ''init'' method is responsible for instantiating the model and storing it in the application scope.
   * Jasper translates a JSP page to a servlet upon receiving the first reference to it (typically from a servlet forward).   * Jasper translates a JSP page to a servlet upon receiving the first reference to it (typically from a servlet forward).
-  * Jasper allows us to embed three things in the JSP page in addition to template (e.g. HTML) code: Expression Language EL, Directives, and Actions. These will be evaluated by Jasper and their values are served as part of the response+  * Jasper allows us to embed three things in the JSP pagetemplate code (such as HTML) which is served as-is, Expression Language [EL] which is served after evaluation, and special action tags which are served after executing the code behind them. It also support a few directives such as content type
-  * EL uses a number of built-inimplicit objects.+  * EL uses a number of built-in implicit objects.
   * Actions are either standard (JSTL) or custom.   * Actions are either standard (JSTL) or custom.
- 
- 
- 
  
 ===== To Do ===== ===== To Do =====
  
-  * Read the rest of Chapter 6. +  * Complete Labs 3 by doing [[http://www.cse.yorku.ca/~roumani/warp/labs/lab4.pdf|Lab-4]]. 
-  * Read Chapter 8 up to Section 8.4.1 but omit 8.3.2-8.3.3+  * Read Chapter 6 up to and excluding Section 6.7
-  * Look at ''ELdemo.jspx'' and ''JSTLdemo.jspx'' in the //Resource Directory//+  * Read Chapter 8 up to and excluding Section 8.5. 
-  * Do [[http://www.cse.yorku.ca/~roumani/warp/labs/lab4.htm|Lab-4]].+  * Look at the basic implementation of EVS in the //Resource Directory// under ''evs''
 +  * Look at ''ELdemo.jspx'' and ''JSTLdemo.jspx'' in the //Resource Directory// under ''jsp''.
jsp.1224603010.txt.gz · Last modified: 2008/10/21 15:30 by roumani

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki