• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Dynamically displaying html:option values

 
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have this code in my JSP:

<html:select property = "combo" onchange="dispLayer('layer1')">
<logic resent name = "qvalues" >
<logic:iterate id = "qvalue" name = "qvalues" >
<html ption value = "<%=qvalue%>" >
<bean:write name = "qvalue" property = "value" />
</html ption>
</logic:iterate>
</logic resent>
</html:select>

all the contents of combo box are generated dynamically. I am not able to get html ption value. I need this value becoz depending on this value my javascript will show and hides a layer. Please help me out with this??

Thanks,
 
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
try to use html ptions if the list is a java structure

Ex: <html ptions name="formName" property="listCodes" labelName="formName" labelProperty="list Names"/>
 
Why does your bag say "bombs"? The reason I ask is that my bag says "tiny ads" and it has stuff like this:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic