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 2002/06/18 11:39:56 UTC

DO NOT REPLY [Bug 9949] New: - Suggest, a 'multiple' attribute for the
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=9949>.
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=9949

Suggest, a 'multiple' attribute for the <logic:present tag.

           Summary: Suggest, a 'multiple' attribute for the <logic:present
                    tag.
           Product: Struts
           Version: 1.0.2 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Custom Tags
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: jeevan_sunkersett@satyam.com


Hi,

This is a new feature request, to be specific for the <logic:present> tag

I am developing a JSP which may or may not be passed request (1 or more) 
parameters. As such at the start of my JSP, I have:

<bean:parameter id="param1" name="ParamName" multiple=�true� />

If there are parameters in the request �param1� above will be set to a 
java.lang.String[]

But if there are no parameters in the request object, this raises a 
JSPException. So had to enclose this within a 
   <jsp:present paramter=�ParamName�> tag

But here-in I had to specify the parameter name that is expected. (the problem 
I face here is my JSP does not know before hand what parameter to expect)

So suggest an attribute like �multiple� for the 
   <logic:present parameter=�xxxx� multiple="true"> tag

Which will return true, if they are 1 or more parameters in the request object. 
(better that checking for the existence of a particular parameter in the 
request)

This could be extended to other logic tags where-ever appropriate.

rgds g1

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>