ave*_*ael 4 java frameworks struts2 web-applications
通常,当我在Web应用程序上看到index.jsp时,它只会转发到另一个URL,例如login.jsp
<jsp:forward page="login.jsp" />
Run Code Online (Sandbox Code Playgroud)
使用struts2时,我想要一个类似的index.jsp,但我希望它转发给一个动作.我该怎么做呢?
All*_*lan 12
如果需要,您可以使用纯HTML
在你的头标之间使用:
<META HTTP-EQUIV="Refresh" CONTENT="1;URL=Login.action">
Run Code Online (Sandbox Code Playgroud)
这将重定向到myCOntext/Login.action
如果Login位于名称空间后面,您需要将其包含在URL中
| 归档时间: |
|
| 查看次数: |
18480 次 |
| 最近记录: |