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=28023>.
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=28023

<html:options> where values have embedded quotes

           Summary: <html:options> where values have embedded quotes
           Product: Struts
           Version: 1.1 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Custom Tags
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


We have some customer-supplied selection options that have double quotes in
their values, and Struts isn't seeming to handle this correctly.

Best I can tell from the HTML spec, these should be placed on the page as &quot;
, which will submit them as %22 , which *should* be seen on the server side as
double quotes again, right?  And Struts should be able to match that to an
existing entry so it can properly set the "selected" value.

Instead, it seems the options tag isn't "escaping" the quotes at all (changing
them to &quot;) and that if we manually do it ourselves, the "selected" item
still isn't being set when the page is reloaded.  IIRC, the tag is just leaving
the quotes inside the attribute value, which outputs invalid HTML.

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

Reply via email to