• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to iterate and get values in a dropdown from a list variable  RSS feed

 
Moieen Khatri
Ranch Hand
Posts: 144
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Please can someone help me with this!

I need to get values in a dropdown from a list variable with has String values.

I have tried the below code but it doesn't help my requirement:




Please can someone advice

Thanks
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Commonly,

1. get your List Object in jsp



2.and iterate the object


3.Important : scriplet is discourage in jsp. if you know jstl/EL then try to use

Hope this helps
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!