Re: ww.url double encoding

tm_jee <[email protected]> Wed, 20 Dec 2006 21:25:37 CST
Newsgroups gmane.comp.java.open-symphony.webwork
Message-ID <18106235.1166671567334.JavaMail.os-j2ee@opensymphony01.managed.contegix.com>
There is one now [1]

Basically just added a "escapeAmp" attribute eg.

Firefox encode ampersand so to avoid that, we don't escapeAmp (by default is true)
[code]
<ww:url id="url" action="myAction" namespace="/mynamespace" escapeAmp="false">
  <ww:param name="param1" value="%{'value1'}" />
  <ww:param name="param2" value="%{'value2'}" />
</ww:url>
<a href="<ww:property value="%{#url}" />">test</a>
[/code]

or if we use WW anchor tag, we don't need to escapeAmp
[code]
<ww:url id="url" action="myAction" namespace="/mynamespace" escapeAmp="true">
  <ww:param name="param1" value="%{'value1'}" />
  <ww:param name="param2" value="%{'value2'}" />
</ww:url>
<ww:a href="%{#url}">test</ww:a>
[/code]

About the form, 
[code]
 <form action="aaa.jsp?param1=value1...">
    ....
  </form>
[/code]

If not mistaken, we are not suppose to have "?param1=value1..." etc in the form action attribute, I don't think its valid html.

rgds

[1] - http://jira.opensymphony.com/browse/WW-1403
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=46866&messageID=109308#109308