bharanitharan
bharanitharan

Reputation: 2629

mapping arraylist object to dropdown(s:select) in struts 2

I have an arraylist of string private ArrayList strarray = new ArrayList(); . I have to map this String arraylist to dropdown(s:select). give me the syntax for s:select tag to display strarray as dropdown.

Upvotes: 0

Views: 2628

Answers (1)

leonbloy
leonbloy

Reputation: 76026

Have you read the docs?

Anyway:

<s:select list="strarray" name="mystr" /> 

Upvotes: 1

Related Questions