help with html:options
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Wednesday, March 26, 2003 07:56 AM

I have a valueObject called Person in my application, and I want to display Person data, where I have list of states for each person and other related data such as name, addresses etc.

So, I would like to display a list of all states (in combo box) where application user can select one state and set the state code in Person.stateCd properties. To get collection of StateList, I have a State object, on which I have a public static List getStateList() method to get collection of stateList.

any help will be appreciated, especially with actual syntax.

Re: help with html:options

Posted By:   rajdeep_paul  
Posted On:   Wednesday, March 26, 2003 08:33 PM



<%

Collection col=addDOObj.getAll();

Iterator itr=col.iterator();

while(itr.hasNext()){

int addTypId=((Long)itr.next()).intValue();

String addTyp=(String)itr.next();

%>

<%=addTyp %>

<%}%>






i hope this helps u

rajdeep

About | Sitemap | Contact