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=18049>. 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=18049 equal tag take more values Summary: equal tag take more values Product: Struts Version: 1.1 Beta 3 Platform: All OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Custom Tags AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] In our web application, we have a situation like: If the value of an attribute(uriType) of a form bean (uriForm) is A, B, C or D, we display the body otherwise we skip the body. The struts equal tag just takes one value, thus we need to duplicate the code in jsp: <logic:equal name="uriForm" property="uriType" value="A"> Display some body content </logic:equal> <logic:equal name="uriForm" property="uriType" value="B"> Display the same body content </logic:equal> <logic:equal name="uriForm" property="uriType" value="C"> Display the same body content </logic:equal> <logic:equal name="uriForm" property="uriType" value="D"> Display the same body content </logic:equal> Now, I created a tag named EqualExtension which can take multiple values, meaning if the attribute value is one of the multiple values, we evaluate the body otherwise skip the body. This tag class is used in our application and tested to work perfectly. Using the tag, the above code will be simplified greatly: <logic:equal name="uriForm" property="uriType" value="A,B,C,D"> Display some body content </logic:equal> The java code EqualExtension extends the base superclass of the struts and is rather simple, I am wondering if you are interested in accepting my contribution of EqaulExtension to the future release. I am happy to submit the source code of EqualExtension if you are interested. Please give me an advice. Thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
