1 2 3 4 5 6 7 8 | javax.servlet.RequestDispatcher rd; /* Obtain a reference to a RequestDispatcher object via the implicit application variable*/ rd = application.getRequestDispatcher( "/NextPage.jsp" ); /* Perform the forward specified by the RequestDispatcher and pass along a reference to the current request and response objects */ rd.forward( request, response ); |
1 2 3 4 5 6 7 8 | javax.servlet.RequestDispatcher rd; /* Obtain a reference to a RequestDispatcher object via the implicit application variable*/ rd = application.getRequestDispatcher( "/Header.jsp" ); /* Perform the include specified by the RequestDispatcher and pass along a reference to the current request and response objects */ rd.include( request, response ); |
1 | <%@ page errorPage="ErrorMessage.jsp"%> |
1 | <%@ page isErrorPage="true"%> |
1 2 3 4 5 6 7 8 9 10 | <webapp> <servlet> <servlet-name>MyServlet</servlet-name> <servlet-class>com.gabhart.MyTestServlet</servlet-class> <init-param> <param-name>contactEmail</param-name> <param-value>kyle@gabhart.com</param-value> </init-param> </servlet> </webapp> |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |