请了解struts模块开发的朋友帮我一把
我在WEB-INF下建了struts-config.xml以及struts-config-order.xml两个配置文件
并且在web.xml中配置好
在struts-config-order.xml基础上建了TestForm和TestAction
并且在web content 下建立目录order,在order目录下建了test.jsp
struts-config-order.xml中配置如下
...
<action-mappings>
<action name="testForm" path="/test" scope="request" type="fdsc.action.TestAction">
<forward name="success" contextRelative="false" path="/test.jsp">
</forward>
</action>
</action-mappings>
在TestAction中
...
return mapping.findForward("success");
jsp页面中
...
<html:form action="/order/test.do">
我用<a href="/order/test.do" target="_blank">来进行测试
结果TestForm和TestAction均能正常运行,
报HTTP 404 - 未找到文件错误
试着将path="/order/test.jsp",还是404错误(contextRelative="false"应该是模块内路径,不需要加/order吧)
请问怎么解决,多谢!