Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    May 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile To highlight multiple selected values in listbox using struts

    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 highlight 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

  • #2
    New to the CF scene
    Join Date
    Apr 2008
    Location
    Montevideo, Uruguay
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It's not quite clear what you need. If you want to pre-select values for a select field in a JSP page before it's presented to the user (ie they are loaded from a database), you should construct the <option> or <html: option> tags with a loop and append "selected='selected'" to those stored.

  • #3
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    pls share the code for this requriment very veryUrgent!!!!

    HI mallik83 ,
    I need ur code.NOw i have to include this code for requirement.Pls share the code for this

    Thanks in advance

  • #4
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    pls share the code for this requriment very veryUrgent!!!!

  • #5
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,980
    Thanks
    4
    Thanked 2,659 Times in 2,628 Posts
    Quote Originally Posted by padmajap13 View Post
    pls share the code for this requriment very veryUrgent!!!!
    This thread is 1.5 years old. It is highly improbable that the original poster will return to share their code.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •