• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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"/>
 
And then the flying monkeys attacked. My only defense was this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic