You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by cr...@locus.apache.org on 2000/11/19 04:12:07 UTC

cvs commit: jakarta-struts/web/example mainMenu.jsp

craigmcc    00/11/18 19:12:05

  Modified:    src/doc  release.xml struts-form.xml
               web/example mainMenu.jsp
  Log:
  Add a new <form:rewrite> tag, inspired by the encodeURL tag submitted by
  Pierre Metras.  This tag generates a request URI, possibly encoded with
  the session identifier if needed, following exactly the same rules that
  the <form:link> tag uses to generate the request URI for a hyperlink.
  
  Revision  Changes    Path
  1.10      +6 -0      jakarta-struts/src/doc/release.xml
  
  Index: release.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/src/doc/release.xml,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- release.xml	2000/11/19 02:11:14	1.9
  +++ release.xml	2000/11/19 03:12:01	1.10
  @@ -126,6 +126,12 @@
         renders an HTML <code>&lt;html&gt;</code> element with appropriate
         <code>lang</code> and <code>xml:lang</code> attributes, based on the
         session stored in the user's session (if there is one).</li>
  +  <li>A new <code>&lt;rewrite&gt;</code> tag has been created that
  +      renders a request URI, possibly encoded with a session identifier,
  +      based on exactly the same rules used by the <code>&lt;link&gt;</code>
  +      tag that generates hyperlinks.  These constants can be useful when
  +      you are creating JavaScript code that needs to be aware of Struts
  +      addressing concepts.</li>
     </ul>
   
     <p>The following major new features have been added to the
  
  
  
  1.11      +103 -0    jakarta-struts/src/doc/struts-form.xml
  
  Index: struts-form.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/src/doc/struts-form.xml,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- struts-form.xml	2000/11/19 02:38:40	1.10
  +++ struts-form.xml	2000/11/19 03:12:02	1.11
  @@ -2245,6 +2245,109 @@
   	</tag>
   	
   	
  +        <tag>
  +
  +                <name>rewrite</name>
  +                <summary>Render an URI</summary>
  +                <tagclass>org.apache.struts.taglib.form.RewriteTag</tagclass>
  +                <bodycontent>empty</bodycontent>
  +                <info>
  +                <p>Renders a request URI based on exactly the same rules
  +                as the <code><a href="#link">link</a></code> tag does,
  +                but without creating
  +                the <code>&lt;a&gt;</code> hyperlink.  This value is useful
  +                when you want to generate a string constant for use by
  +                a JavaScript procedure.</p>
  +                </info>
  +
  +                <attribute>
  +                  <name>forward</name>
  +                  <required>false</required>
  +                  <rtexprvalue>true</rtexprvalue>
  +                  <info>
  +                  <p>Logical name of a global <code>ActionForward</code> that
  +                  contains the actual content-relative URI of the destination
  +                  of this transfer.  This hyperlink may be dynamically
  +                  modified by the inclusion of query parameters, as described
  +                  in the tag description.  You <strong>must</strong> specify
  +                  exactly one of the <code>forward</code> attribute, the
  +                  <code>href</code> attribute, or the <code>page</code>
  +                  attribute.</p>
  +                  </info>
  +                </attribute>
  +
  +                <attribute>
  +                  <name>href</name>
  +                  <required>false</required>
  +                  <rtexprvalue>true</rtexprvalue>
  +                  <info>
  +                  <p>The URL to which this hyperlink will transfer control
  +                  if activated.  This hyperlink may be dynamically modified
  +                  by the inclusion of query parameters, as described in the
  +                  tag description.  You <strong>must</strong> specify
  +                  exactly one of the <code>forward</code> attribute, the
  +                  <code>href</code> attribute, or the <code>page</code>
  +                  attribute.</p>
  +                  </info>
  +                </attribute>
  +
  +                <attribute>
  +                  <name>page</name>
  +                  <required>false</required>
  +                  <rtexprvalue>true</rtexprvalue>
  +                  <info>
  +                  <p>The context-relative path (beginning with a "/"
  +                  character) to which this hyperlink will transfer control
  +                  if activated.  This hyperlink may be dynamically modified
  +                  by the inclusion of query parameters, as described in the
  +                  tag description.  You <strong>must</strong> specify exactly
  +                  one of the <code>forward</code> attribute, the
  +                  <code>href</code> attribute, or the <code>page</code>
  +                  attribute.</p>
  +                  </info>
  +                </attribute>
  +
  +                <attribute>
  +                  <name>name</name>
  +                  <required>false</required>
  +                  <rtexprvalue>true</rtexprvalue>
  +                  <info>
  +                  <p>The name of a JSP bean that contains a <code>Map</code>
  +                  representing the query parameters (if <code>property</code>
  +                  is not specified), or a JSP bean whose property getter is
  +                  called to return a <code>Map</code> (if <code>property</code>
  +                  is specified).</p>
  +                  </info>
  +                </attribute>
  +
  +                <attribute>
  +                  <name>property</name>
  +                  <required>false</required>
  +                  <rtexprvalue>true</rtexprvalue>
  +                  <info>
  +                  <p>The name of a property of the bean specified by the
  +                  <code>name</code> attribute, whose return value must be
  +                  a <code>java.util.Map</code> containing the query parameters
  +                  to be added to the hyperlink.  You <strong>must</strong>
  +                  specify the <code>name</code> attribute if you specify
  +                  this attribute.</p>
  +                  </info>
  +                </attribute>
  +
  +                <attribute>
  +                  <name>scope</name>
  +                  <required>false</required>
  +                  <rtexprvalue>true</rtexprvalue>
  +                  <info>
  +                  <p>The scope within which to search for the bean specified
  +                  by the <code>name</code> attribute.  If not specified, all
  +                  scopes are searched.</p>
  +                  </info>
  +                </attribute>
  +
  +        </tag>
  +
  +
   	<tag>
   		
   		<name>select</name>
  
  
  
  1.9       +1 -0      jakarta-struts/web/example/mainMenu.jsp
  
  Index: mainMenu.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/web/example/mainMenu.jsp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- mainMenu.jsp	2000/11/19 01:18:18	1.8
  +++ mainMenu.jsp	2000/11/19 03:12:04	1.9
  @@ -21,3 +21,4 @@
   
   </body>
   </html>
  +