Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

To highlight multiple selected values in listbox using struts

 
malli
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic