JSP directive:jsp Instruction (directive) is designed for the JSP engine, they do not directly produce any visible output, Instead, tell the engine how to handle the JSP
Other parts of the page
Page instruction on the header
<% @page import= "Org.apache.jasper.tagplugins.jstl.core.Out"%>
<% @page import= "Java.util.Date"%>
<%@ page language= "java" contenttype= "text/html; Charset=utf-8 "
pageencoding= "Utf-8"%>
Configuration Error page:
<%@ page errorpage= "500.jsp"%>
Xml
<error-page>
<error-code>500</error-code>
<location>/500.jsp</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/404.jsp</location>
</error-page>
Solve Chinese garbled characters:
<%@ page language= "java" contenttype= "text/html; Charset=utf-8 "
pageencoding= "Utf-8"%>
The page contains:
<% @include file= "footer.jsp"%>
The nine implicit objects of the JSP:
After the JSP page is translated into a Servlet , the nine objects that are automatically defined for us in the service method
Page object, current Servlet Object
Config
Application
Response
Request
Session
Out
PageContext
Final Javax.servlet.jsp.PageContext PageContext;
Javax.servlet.http.HttpSession session = NULL;
Final Javax.servlet.ServletContext Application;
Final Javax.servlet.ServletConfig config;
Javax.servlet.jsp.JspWriter out = null;
Final Java.lang.Object page = this;
Javax.servlet.jsp.JspWriter _jspx_out = null;
Javax.servlet.jsp.PageContext _jspx_page_context = null;
Instructions for [Java EE] jsp