开发者

Spring freemarker bind - what is controller?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜