| 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 ]
|
 |
 |
|
|
subject: JSP Use bean select option multiple
|
|
|