开发者

Spring freemarker bind - what is controller?

开发者 https://www.devze.com 2022-12-24 00:18 出处:网络
looking at the documentation for the spring macros for freemarker they talk about the \'command\' object... i am confused as to wha开发者_运维知识库t that is? at first i thought it is just the ModleMa

looking at the documentation for the spring macros for freemarker they talk about the 'command' object... i am confused as to wha开发者_运维知识库t that is? at first i thought it is just the ModleMap set by the controller, but its obviously not. What is the "bind" actually used for?


The command object it's referring to is the form-backing object used by Spring MVC. If you want to use full form handling, I strongly suggest you go and read up on the rest of the Spring MVC documentation before tackling it.

However, you can safely ignore the form-handling stuff if you so choose, and just access the ModelMap directly from your freemarker templates.

0

精彩评论

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