How can i set my own class object in <html:select> property ?

G

gauravmangla

I want to set an object of type "com.common.Comment" in the property of
<html:select> in following jsp code :--


<html:select property="commentText" >
<logic:iterate id="iterator" name="ManageForm" property="userCreated"
indexId="index1">

<bean:define id="userdefine" name="iterator"
type="com.common.Comment" />
<html:eek:ption
value="<%=String.valueOf(userdefine.getCommentText())%>">
<%=userdefine.getCommentText()%>
</html:eek:ption>
</logic:iterate>
</html:select>

The above code set the commentText property with the value
userdefine.getCommentText(). But i need userdefine.getId() too. How can
i pass both values together in form property?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,436
Messages
2,571,696
Members
48,796
Latest member
Greg L.
Top