请问一下struts的路径问题
我在WebRoot目录下建一个fundoperate文件夹文件夹里有一个find.jsp
我在jsp有一个普通的提交表单(没用struts标签)在表单提交到action时
网页出现
HTTP Status 404 - Invalid path /fundoperate/find was requested
type Status report
message Invalid path /fundoperate/find was requested
description The requested resource (Invalid path /fundoperate/find was requested) is not available.
Apache Tomcat/5.0.28
控制太出现
09:15:11,234 ERROR RequestProcessor:664 - Invalid path /fundoperate/find was requested
09:16:19,250 ERROR RequestProcessor:664 - Invalid path /fundoperate/find was requested
09:17:12,156 ERROR RequestProcessor:664 - Invalid path /fundoperate/find was requested
找不到路径
但我把find.jsp放到Webroot根目录下或者把jsp的from表单 <html:form action= " "> 也能找到页面
这是怎么回事那为大哥能帮忙解决下谢谢了
[解决办法]
更正!!!!
建议
<form action= " <%=request.getContextPath%> /find.do ">
或者
在 <head> 前 加 <base value= " <%=request.getContextPath%> "
然后 <form action= "/find.do ">