wood burning stoves 2.0*
The moose likes Struts and the fly likes Struts logic and html select Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts logic and html select" Watch "Struts logic and html select" New topic

Struts logic and html select

Nick Delauney
Ranch Hand

Joined: Sep 28, 2002
Posts: 43
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?

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

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

Thanks in advance,

N.D:"Anything worth having, takes time to get"
Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 30352


You may want to consider using html:form, html:select and htmlption in the future.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Nick Delauney
Ranch Hand

Joined: Sep 28, 2002
Posts: 43
I agree. Here's the link: http://aspose.com/file-tools
subject: Struts logic and html select