You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/04/28 20:01:26 UTC

DO NOT REPLY [Bug 19395] New: - struts-el tags overwrite property values

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

struts-el tags overwrite property values

           Summary: struts-el tags overwrite property values
           Product: Struts
           Version: 1.1 RC1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Custom Tags
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: michael@mage.net


for example, in struts-el:text, if you have a property that is set to an
expression, like ${i}, then the tag evaluates the expression and then stores the
result in the property setting. if the tag is reused (as per the jsp 2.3 spec),
then the expression will not be reevaluated. this is a particular problem for
looped html form elements. this won't show up in some servlet containers because
they don't recycle tags. the problem doesn't happen in tomcat, but does happen
in caucho resin.

the fix seems simple; instead of calculating and overwriting the properties in
doStartTag(), just have the individual getters return evalExpr(the property
value). there are other, more invasive, solutions, of course.

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