当前位置:编程学习 > JS >>

JSP————隐式对象

九大隐式对象
 
JSP隐式对象的作用范围仅限于Servlet的_jspService方法,所以在JSP声明中不能使用这些隐式对象
PageContext pageContext= null;
HttpSession session= null;
ServletContext application= null;
ServletConfig config= null;
JspWriter out= null;
Object page= this;
Throwable exception= org.apache.jasper.runtime.JspRuntimeLibrary.getThrowable(request);
if (exception != null) {
              response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
       }                 
还有Request      Response              自己找个方法记住方便使用(rrcaoppse)
补充:Web开发 , Jsp ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,