DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36774>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36774

           Summary: Ampersands encoded in html:link using name and property
           Product: Struts
           Version: 1.2.7
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Custom Tags
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


I recently upgraded from Struts 1.1 to Struts 1.2.7 and use the feature of the 
<html:link> tag to get multiple params from a Map interface. The URL is now 
encoding the ampersands that separate the params.

emplRcd=0&amp;seq=0&amp;employeeId=1234567890
when the output should be
emplRcd=0&seq=0&employeeId=1234567890

I found that the TagUtils.computeURLWithCharEncoding() method was passing a 
hard-coded value of "true" as the encodeSeparator method param. By changing 
this to "false", the ampersands no longer get encoded.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to