It's not a secret anymore!*
The moose likes Struts and the fly likes To highlight multiple selected values in listbox using struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "To highlight multiple selected values in listbox using struts " Watch "To highlight multiple selected values in listbox using struts " New topic
Author

To highlight multiple selected values in listbox using struts

malli
Greenhorn

Joined: Dec 12, 2006
Posts: 6
Hi..

I have a registration form where i am using a listbox where we can select multiple values.I am storing these values concatenating with commas(for eg. A,B,C).Now i have to update this registration form, so i have to retrieve these values and to hightlight the previously selected values.
I have the idea that first i have to retrieve that field from database and split the commas and then i have to write the code in the front end to display the values.
But in real time i m unable to display in front end.

Thanks

Cheers
Mallik
Anirvan Majumdar
Ranch Hand

Joined: Feb 22, 2005
Posts: 261
Have you written any front-end code to accomplish your "idea"? There are a whole lot of ways to do what you want: JSTL, logic tags (incase you're using Struts), simple Java sciptlets, etc.

If you've already employed some technique, then you could share it with us and we'd be in a better position to help you out thereon.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: To highlight multiple selected values in listbox using struts
 
Similar Threads
retrieving list (multiple select on the form) values into servlet!!!
retrieving audio files from database
code to retrieve result from databse which are selected in the list box
JSP
Which Form control ?