7.1. Undestand the origins, benefits, and weaknesses of JSPs
- JSP combines static HTML with dynamic content.
- JSP contains the view separately from logic.
- JSP are compiled as servlet when requested
- Using tags java beans can be managed, without complex logic code.
- Tag libraries can be customized
JSP lifecycle in detail in this post: ocewcd-2-introduction-to-java-server
7.3. Understand JSP scripting elements, declarations and directives
Directives:
-Page <%@ page ... %> instructions in the current JSP
-include <%@ include ... %> include a file during translation phase
-tab library <%@ taglib ... %> define custom JSP tags
7.4. Use JSP implicit variables
- application -- servletContext
- config -- servletConfig
- exception -- Exception object
- out -- PrintWriter
- page -- this
- request -- HttpServletRequest
- response -- HttpServletResponse
- session -- HttpSession
OCEJWCD (SCWCD) - 1Z0-899 - Web Component Developer Certification
No comments:
Post a Comment