开发者

How to specify default value for form input using Spring and Freemarker

开发者 https://www.devze.com 2023-03-25 13:43 出处:网络
I am using Spring MVC and Freemarker. I have created a form and I want to put a default value into a formInput

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.

0

精彩评论

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

关注公众号