Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts logic and html select  RSS feed

 
Nick Delauney
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to set the value of the option tag to the same value as "item". Could anyone assist me on how this should be done?

From:
<logic:iterate id="item" name="liquidationType" ><option><bean:write name="item"/></option>
</logic:iterate>

To:
<logic:iterate id="item" name="liquidationType" >
<option value="get the item value here"><bean:write name="item"/></option>
</logic:iterate>

Thanks in advance,
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36396
453
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nick,


You may want to consider using html:form, html:select and htmlption in the future.
 
Nick Delauney
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!