This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes JSP Use bean select option multiple Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP Use bean select option multiple" Watch "JSP Use bean select option multiple" New topic
Author

JSP Use bean select option multiple

manick peri
Greenhorn

Joined: Jun 15, 2005
Posts: 2
Hi,
I am trying to read multiple values selected from htm using <select multiple>
in jsp using bean.But the setXxx(String[] multi) is not getting called properly.
How to pass multiple values to setMethod in the use bean.
THnks
Manick
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

For select boxes with the multiple attribute set, you would read the values with getParameterValues(String).


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
manick peri
Greenhorn

Joined: Jun 15, 2005
Posts: 2
Can i not use <jsp:setProperty name="searchA" property="*" /> to set multiple values for the setXxx methods...
THnks
manick
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

I just tried on Tomcat 5.5.9 and it worked.



[ June 15, 2005: Message edited by: Ben Souther ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP Use bean select option multiple