开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜