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服務器?輕鬆處理例如阿帕奇 –