当前位置: 技术问答>java相关
RequestDispatcher问题?
来源: 互联网 发布时间:2017-04-17
本文导语: 部分代码: 67 ServletContext sc = getServletContext(); 68 RequestDispatcher rd = sc.getRequestDispatcher("/Pagination.jsp"); 69 rd.forward(request,response); JBuilder8+WebLogic7. 页面显示: Error 500--Internal Server Error From RFC 2068 Hyp...
部分代码:
67 ServletContext sc = getServletContext();
68 RequestDispatcher rd = sc.getRequestDispatcher("/Pagination.jsp");
69 rd.forward(request,response);
JBuilder8+WebLogic7.
页面显示:
Error 500--Internal Server Error
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.5.1 500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.
JBuilder里提示信息:
67 ServletContext sc = getServletContext();
68 RequestDispatcher rd = sc.getRequestDispatcher("/Pagination.jsp");
69 rd.forward(request,response);
JBuilder8+WebLogic7.
页面显示:
Error 500--Internal Server Error
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.5.1 500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.
JBuilder里提示信息:
|
可以在Servlet里直接使用
getServletContext().getRequestDispatcher("/A.jsp").forward(request,response);
和
RequestDispatcher dispatcher=getServletContext().getRequestDispatcher("/A.jsp").);
dispatcher.forward(request,response);
一样
没区别
和他们没关系
明显的问题
java.lang.ArrayIndexOutOfBoundsException
数组超界
getServletContext().getRequestDispatcher("/A.jsp").forward(request,response);
和
RequestDispatcher dispatcher=getServletContext().getRequestDispatcher("/A.jsp").);
dispatcher.forward(request,response);
一样
没区别
和他们没关系
明显的问题
java.lang.ArrayIndexOutOfBoundsException
数组超界
|
可以在Servlet里直接使用
getServletContext().getRequestDispatcher("/A.jsp").forward(request,response);
getServletContext().getRequestDispatcher("/A.jsp").forward(request,response);
|
RequestDispatcher dispatcher=getServletContext().getRequestDispatcher("/A.jsp").);
dispatcher.forward(request,response);
dispatcher.forward(request,response);