You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by hu...@apache.org on 2004/01/16 04:52:15 UTC

cvs commit: jakarta-struts/web/examples/exercise logic-redirect-test-page.jsp logic-redirect-test-forward.jsp logic-redirect-test-action.jsp logic-forward.jsp logic-forward-test-forward.jsp html-img.jsp

husted      2004/01/15 19:52:15

  Added:       web/examples/exercise logic-redirect-test-page.jsp
                        logic-redirect-test-forward.jsp
                        logic-redirect-test-action.jsp logic-forward.jsp
                        logic-forward-test-forward.jsp html-img.jsp
  Log:
  Add test pages for html:img and logic:forward,redirect tags
  
  Revision  Changes    Path
  1.1                  jakarta-struts/web/examples/exercise/logic-redirect-test-page.jsp
  
  Index: logic-redirect-test-page.jsp
  ===================================================================
  <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
  <logic:redirect page="/logic-forward.do"/>
  
  
  
  1.1                  jakarta-struts/web/examples/exercise/logic-redirect-test-forward.jsp
  
  Index: logic-redirect-test-forward.jsp
  ===================================================================
  <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
  <logic:redirect forward="logic-forward"/>
  
  
  
  1.1                  jakarta-struts/web/examples/exercise/logic-redirect-test-action.jsp
  
  Index: logic-redirect-test-action.jsp
  ===================================================================
  <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
  <logic:redirect action="/logic-forward"/>
  
  
  
  1.1                  jakarta-struts/web/examples/exercise/logic-forward.jsp
  
  Index: logic-forward.jsp
  ===================================================================
  <%@ 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-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>
      <li>Redirect to this page, via action attribute [:TODO:]</li>
      </ul>
      <hr />
      <ul>
        <li>
          <html:link forward="relative">Taglibs Exercise welcome page</html:link>
        </li>
      </ul>
    </body>
  </html>
  
  
  
  1.1                  jakarta-struts/web/examples/exercise/logic-forward-test-forward.jsp
  
  Index: logic-forward-test-forward.jsp
  ===================================================================
  <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
  <logic:forward name="logic-forward" />
  
  
  
  1.1                  jakarta-struts/web/examples/exercise/html-img.jsp
  
  Index: html-img.jsp
  ===================================================================
  <%@ taglib uri="/tags/struts-html" prefix="html" %>
  <html>
    <head>
      <title>Test struts-html:img Tag</title>
    </head>
    <body>
      <div align="center">
        <h1>Test struts-html:img Tag</h1>
      </div>
  
      <table border="1" cellspacing="2" cellpadding="4" align="center">
      <tr>
      <td>
      Standard img tag
      </td>
      <td>
      <img src="struts-power.gif">
      </td>
      </tr>
      <td>
      Struts img tag via page attribute
      </td>
      <td>
      <html:img page="/struts-power.gif" />
      </td>
      </tr>
      <tr>
      <td>
      Struts img tag via action attribute
      </td>
      <td>
      [:TODO:]
      <%--
      <html:img action="/struts-power" />
      --%>
      </td>
      </tr>
    </body>
  </html>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org