JSP syntax notes

xiaoxiao2021-03-05  26

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

转载请注明原文地址:https://www.9cbs.com/read-38385.html

New Post(0)