hi all
am getting no.of users from DAO class and all username are in the form of
User Object.
ArrayList list = new ArrayList();
while(rs.next()){
User user = new User();
user.setUsername("abc");
list.add(user);
}
this is my code .
<%
ArrayList userList = (ArrayList)request.getAttribute("users");
%>
<html:select property="username">
<logic:iterate id="users"
collection="<%=userList%>"
length="<%=""+(userList.size()-1)%>">
<html:option value=""><bean:write
name="users"
property="username"/></html:option>
</logic:iterate>
</html:select>
i can populate my User object by bean write . How do i set my
username value to <html:option value="">.. anyone please let me clear
--
View this message in context:
http://www.nabble.com/%3Chtml%3Aoption%3E-tag-tp21028416p21028416.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]