You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "David Evans (JIRA)" <ji...@apache.org> on 2006/04/24 17:56:09 UTC

[jira] Reopened: (STR-2682) TagUtils doesn't create XHTML compliant URLs when called from LinkTag when using forwards defined with redirect="true"

     [ http://issues.apache.org/struts/browse/STR-2682?page=all ]
     
David Evans reopened STR-2682:
------------------------------

    Assign To: David Evans  (was: Struts Developer Mailing List)

> TagUtils doesn't create XHTML compliant URLs when called from LinkTag when using forwards defined with redirect="true"
> ----------------------------------------------------------------------------------------------------------------------
>
>          Key: STR-2682
>          URL: http://issues.apache.org/struts/browse/STR-2682
>      Project: Struts Action 1
>         Type: Bug

>   Components: Taglibs
>     Versions: 1.2.8
>  Environment: Operating System: other
> Platform: Other
>     Reporter: Jason A. Lunn
>     Assignee: David Evans
>  Attachments: link_xhtml_compliance.patch, struts_tagutils_redirect.patch
>
> html:link tags using the "forward" attribute to reference an ActionForward where the redirect attribute is 
> true do not render XHTML compliant URLs in all cases. The problem manifests when using a Map to 
> include multiple parameters because the ampersand in the URL is not properly escaped. This is because 
> the separator variable in TagUtils.computeURLWithCharEncoding() is defined after the value of the function 
> argument "redirect" is overridden by the value of of forwardConfig.getRedirect()
> By simply moving the small block of code that determines the value of "separator" to be before the block 
> of code that inspects the state of forwardConfig, XHTML compliant URLs can be rendered by the html:link 
> tag without negatively impacting the logic:redirect tags need to force unescaped ampersands.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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