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" />
<htmlption
value="<%=String.valueOf(userdefine.getCommentText())%>">
<%=userdefine.getCommentText()%>
</htmlption>
</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?
<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" />
<htmlption
value="<%=String.valueOf(userdefine.getCommentText())%>">
<%=userdefine.getCommentText()%>
</htmlption>
</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?