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 -

ruby on rails - Convert a Activerecord result with has_one associations into a single hash per record -

javascript - Read complete data from stream from onMessage -