This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing comma seperated values as parameter

 
Skanda Raman
Ranch Hand
Posts: 205
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have requirement where there is a select box listing 600 entries. There is a ALL option to select all these entries. I can select multiple values as well.

Assume i select 570 entries, currently using java script i get the selected values and set the same in request through hidden parameter and passing to action class.

I am not sure if this is a best practice, as the number might grow in future from 600 to 1000 also.

Please suggest me if there is a best practice in this scenario.

 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why hidden fileds here? Use request.getParameterValues("multiSelectedValues") on server!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64696
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree -- it sounds like you are trying to be too clever. Why are you not just using the straight-forward approach?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic