开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜