JSP syntax notes
2005.04.08
JSP boundaries: <%> JSP Note: <% - Comment -%> JSP variable declaration: <%!%> (Only with declarations, do not execute the statement Disclaimer: <% @%> <% @ page import = "java.util. *"%> <% @ Page att = "VAL"%> JSP expression: <% = exp%>
Language: <% @ Page ContentType = "Text / HTML; Charset = GB2312"%> Response.setContentType ("text / html; charSet = GB2312");
JSP jump: jsp contains: <% @ include file = "a.txt"%> (static inclusion in .java)
JavaBean: (dynamic)
JSP predefined 8 variables (implied variables): Request, Response, Out, Session, Application, Config, PageContext, Page