Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

drop-downs in Struts

Status
Not open for further replies.

piterskiy

Technical User
Aug 24, 2007
8
US
I have an ActionClass and a JSP page.
What I want to do is just have a drop-down showing some values. Nothing complcated.

I created ArrayList in Action and put it to a request object as follows

ArrayList list = new ArrayList();
list.add("1");
list.add("2");

request.setAttribute("exsList", list);



And in JSP I have following:

<bean:define id="aList" name = "exsList" />

I just want to display these numbers in drop-down.

What should I do next.

Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top