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.
精彩评论