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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11179

Improper parsing of Struts tag when property is set with JSP embed

           Summary: Improper parsing of Struts tag when property is set with
                    JSP embed
           Product: Struts
           Version: 1.0.2 Final
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Custom Tags
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When attempting to dymnamically modify properties of a Struts tag (via JSP 
embed <%= %>), if the value of the property contains existing string content, 
the JSP embed tag is not parsed.

The following example will show the progression of JSP/Struts code to generated 
Java to output HTML. FYI Constants.NAME_A=="NameA", etc.

JSP Code:

<INPUT type="hidden" name="<%= Constants.NAME_A %>" value=""> 
<INPUT type="hidden" name="this<%= Constants.NAME_B %>" value=""> 
<html:hidden property="<%= Constants.NAME_C %>" value="" /> 
<html:hidden property="that<%= Constants.NAME_D %>" value="" /> 
<html:hidden property=" <%= Constants.NAME_E %>" value="" /> 


Generated Java Code:

...
hiddentag.setProperty("NameA"); 
...
hiddentag.setProperty("thisNameB"); 
...
hiddentag.setProperty("NameC"); 
...
hiddentag.setProperty("that<%= Constants.NAME_D %>"); 
...
hiddentag.setProperty(" <%= Constants.NAME_E %>"); 
...


Output HTML:

<input type="hidden" name="NameA" value=""> 
<input type="hidden" name="thisNameB" value=""> 
<input type="hidden" name="NameC" value=""> 
<input type="hidden" name="that<%= Constants.NAME_D %>" value=""> 
<input type="hidden" name=" <%= Constants.NAME_E %>" value=""> 

The problems are evident in D and E.  This issue occurs anytime a property 
value (of a Struts tag) contains more than just the JSP embed tag.

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

Reply via email to