Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP Use bean select option multiple  RSS feed

 
manick peri
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For select boxes with the multiple attribute set, you would read the values with getParameterValues(String).
 
manick peri
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can i not use <jsp:setProperty name="searchA" property="*" /> to set multiple values for the setXxx methods...
THnks
manick
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just tried on Tomcat 5.5.9 and it worked.



[ June 15, 2005: Message edited by: Ben Souther ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!