logic-forward.jsp

来自「sturts1.2 框架是java的mvc框架」· JSP 代码 · 共 26 行

JSP
26
字号
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<html>
  <head>
    <title>Test struts-logic:forward and struts-logic:redirect Tags</title>
  </head>
  <body>
    <div align="center">
      <h1>Test struts-logic:forward and struts-logic:redirect Tags</h1>
    </div>
    <p>The following links should return to this page.</p>
    <ul>
    <li><a href="logic-forward.do?value=test">Standard hyperlink back to this page</a></li>
    <li><html:link action="/logic-forward-test-forward?value=test">Forward to this page</html:link></li>
    <li><html:link action="/logic-redirect-test-action?value=test">Redirect to this page, via action attribute</html:link></li>
    <li><html:link action="/logic-redirect-test-forward?value=test">Redirect to this page, via forward attribute</html:link></li>
    <li><html:link action="/logic-redirect-test-page?value=test">Redirect to this page, via page attribute</html:link></li>
    </ul>
    <hr />
    <ul>
      <li>
        <html:link forward="relative">Taglibs Exercise welcome page</html:link>
      </li>
    </ul>
  </body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?