Struts 1.2.7下载文件,包含DispatchAction,无效路径,JDeveloper 10,JDK 5

时间:2018-06-11 16:33:28

标签: struts-1 downloading dispatch struts-config

注意:我没有使用表单,我想在同一页面返回...

myFile.jsp

<%
  String pathDownload = "/ServletSomeAction.do?activity=download&nameFile=" + nameFile;
  System.out.println("pathDownload:" + pathDownload);
%>
blabla
<html:link action="<%=pathDownload%>"><%=nameFile%></html:link>

在struts-config.xml

<action
  input="/ServletSomeAction"
  path="/ServletSomeAction"
  type="client.web.action.SomeAction"
>
  <forward name="redirection" path="/jsp/path/myFile.jsp"/>
</action>

我得到了这个错误,我不知道如何解决,但我正在努力。

16:12:02,404 ERROR [action.RequestProcessor.processMapping] Invalid path /ServletSomeAction was requested

org.apache.struts.actions.DispatchAction

请告诉我如何解决此错误。

0 个答案:

没有答案