Spring MVC default value? -


Whether "form: options" by Spring MVC " Is there a way to select the default value in the dropdown list? ?

I mean: If an option ID is equal to my model attribute ID, then I want to choose them by default.

If you do:

  & lt; Form: Select Path = "optionName" & gt; & Lt; Form: option item = "$ {your_option_types}" /> & Lt; / Form: Selection & gt;   

This will pre-select your model attribute value.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -