File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Passing comma seperated values as parameter
Joined: Mar 21, 2008
Oct 11, 2011 09:33:52
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
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.
Joined: Jan 28, 2008
Oct 11, 2011 09:57:39
why hidden fileds here? Use
Author and ninkuma
Joined: Jan 10, 2002
Oct 11, 2011 10:08:22
I agree -- it sounds like you are trying to be too clever. Why are you not just using the straight-forward approach?
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: Passing comma seperated values as parameter
Question on Environment Entries
How to get values from HashMap in XSLT?
How to retain value in multiple select box
Java array and String problem
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014