struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tm...@apache.org
Subject svn commit: r408151 - /struts/action2/trunk/core/src/main/java/org/apache/struts/action2/dispatcher/StrutsResultSupport.java
Date Sun, 21 May 2006 09:29:01 GMT
Author: tmjee
Date: Sun May 21 02:29:01 2006
New Revision: 408151

URL: http://svn.apache.org/viewvc?rev=408151&view=rev
Log:
- update snippet/javadoc to show usage of parse and encode result
  parameters.


Modified:
    struts/action2/trunk/core/src/main/java/org/apache/struts/action2/dispatcher/StrutsResultSupport.java

Modified: struts/action2/trunk/core/src/main/java/org/apache/struts/action2/dispatcher/StrutsResultSupport.java
URL: http://svn.apache.org/viewvc/struts/action2/trunk/core/src/main/java/org/apache/struts/action2/dispatcher/StrutsResultSupport.java?rev=408151&r1=408150&r2=408151&view=diff
==============================================================================
--- struts/action2/trunk/core/src/main/java/org/apache/struts/action2/dispatcher/StrutsResultSupport.java
(original)
+++ struts/action2/trunk/core/src/main/java/org/apache/struts/action2/dispatcher/StrutsResultSupport.java
Sun May 21 02:29:01 2006
@@ -65,10 +65,13 @@
  * <p/>
  * <pre>
  *  &lt;result name="success" type="redirect" &gt;
- *      &lt;param name="<b>location</b>"&gt;foo.jsp&lt;/param&gt;
+ *      &lt;param name="<b>location</b>"&gt;foo.jsp?url=${myUrl}&lt;/param&gt;
  *      &lt;param name="<b>parse</b>"&gt;true&lt;/param&gt;
- *      &lt;param name="<b>encode</b>"&gt;false&lt;/param&gt;
+ *      &lt;param name="<b>encode</b>"&gt;true&lt;/param&gt;
  *  &lt;/result&gt;</pre>
+ * <p/>
+ * In the above case, myUrl will be parsed against Ognl Value Stack and then 
+ * URL encoded.
  * <p/>
  * or when using the default parameter feature
  * <p/>



Mime
View raw message