This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread 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 Android Security Essentials Live Lessons this week in the Android 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
 
Similar Threads
hows can i retrieve the values from a multiple select list in a jsp??
Multiple selection in drop down list
selecting a value in drop down box
help me
combo boxes in jsp