0
如何使用子路径将页面重定向到带参数的struts 1动作?使用参数将页面重定向到struts动作动作
例子:myserver.com/subpath重定向TI myserver.com/myaction.do?method=init
如何使用子路径将页面重定向到带参数的struts 1动作?使用参数将页面重定向到struts动作动作
例子:myserver.com/subpath重定向TI myserver.com/myaction.do?method=init
你可以试试这个。 使用此短代码在子路径目录中创建index.jsp文件。
<jsp:forward page="myserver.com/myaction.do">
<jsp:param name="method" value="init"/>
</jsp:forward>
或
<% response.sendRedirect("myserver.com/myaction.do?method=init"); %>
您使用的Web服务器?轻松处理例如阿帕奇 –