注意:我没有使用表单,我想在同一页面返回...
在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
请告诉我如何解决此错误。