tags:

views:

139

answers:

1

Hi am new in struts2. i have user from , in the role column displays by dropdown list. when user form edit mode, the stored values are placed into corresponding controls.but i cant set dropdown list default selected value. how can i have do it.

A: 

If the value in your select tag matches a key from the list in the select tag, Struts will do the correct thing and make that value the default. Note that the types must match.

http://struts.apache.org/2.1.6/docs/select.html

Nate