开发者

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

开发者 https://www.devze.com 2023-01-04 17:02 出处:网络
I have an arraylist of string private ArrayList s开发者_JAVA百科trarray = new ArrayList(); .I have to map this String arraylist to dropdown(s:select).give me the syntax for s:select tag to display str

I have an arraylist of string private ArrayList s开发者_JAVA百科trarray = 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.


Have you read the docs?

Anyway:

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

精彩评论

暂无评论...
验证码 换一张
取 消