How to specify default value for form input using Spring and Freemarker
I am using Spring MVC and Freemarker.
I have created a form and I want to put a default value into a formInput
<@spring.formInput 'search.value' ''/>
But the documentation is a bit weak 开发者_运维问答and I can't figure out how to specify the default value for the field.
The way to do this is to set the value in the backing form, and not in template.
 加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论