开发者

Passing variable to template view in spring MVC

I need to pass a variable to main template view in Spring. How can I do this. Than开发者_Python百科ks.


I hope I understand your question correct, as you did not provide too much information. But you can't pass a variable to a view without controller. Bind a controller to the URL you want to pass the variable to and put the variable you want to pass in the modelmap. Then you can use it in your view.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜