java.lang.IllegalArgumentException:Path admin/admin_up.jsp does not start with a "/" characterorg.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcess

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/09 00:38:21
java.lang.IllegalArgumentException:Pathadmin/admin_up.jspdoesnotstartwitha"/"characterorg.apache.str

java.lang.IllegalArgumentException:Path admin/admin_up.jsp does not start with a "/" characterorg.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcess
java.lang.IllegalArgumentException:Path admin/admin_up.jsp does not start with a "/" character
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.cn.fjnl.charsetFilter.CharsetFilter.doFilter(CharsetFilter.java:29)

java.lang.IllegalArgumentException:Path admin/admin_up.jsp does not start with a "/" characterorg.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcess
你这个是要在Action中进行跳转吧!
如果是struts1的话在forward()方法里面的JSP路径前面加“/”;
如果是struts2的话在struts.xml中找到那个页面的地址,加个反斜线.
这个是提示你写的路径不合法,要求是绝对路径.

刚刚我也遇到了这个问题,是因为 action里面forward的跳转路径必须是要以"/"开头,请检查一下你的action配置文件是不是这样的。

是不是少了个/啊。你那个PATH写成“/admin/admin_up.jsp”试试。

如果你是用tomcat进行调试的话,一般发送一个请求是:
http://localhost:8080/项目名称/要访问的文件或action的路径
你对照着看下,然后改下你的路径试试

这是配置文件出错了,标签中的path属性必须用"/"开头!