开发者

Passing variable to template view in spring MVC

开发者 https://www.devze.com 2023-03-30 21:13 出处:网络
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 ca

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

精彩评论

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