gkontos
Jun 6th, 2008, 07:58 PM
I am trying to set some variables that will be accessible on my jsp pages.
I set the parameter using modelAndView.addObject("message","Message Text"); This sort of works. But not how I want it to work.
On my page I have multiple <jsp:include>'s that are all mapped to different Controllers. The "Message Text" will display only within the context of the particular <jsp:include> which is mapped to the controller that added "Message Text" to modelAndView. I want this message text to display in the page header.
There has to be some way to be able to set a variable that will be accessible throughout the page. Or perhaps I am not understanding requestScope in Spring?
Any help is greatly appreciated. This thing is being a real thorn in my side.
I set the parameter using modelAndView.addObject("message","Message Text"); This sort of works. But not how I want it to work.
On my page I have multiple <jsp:include>'s that are all mapped to different Controllers. The "Message Text" will display only within the context of the particular <jsp:include> which is mapped to the controller that added "Message Text" to modelAndView. I want this message text to display in the page header.
There has to be some way to be able to set a variable that will be accessible throughout the page. Or perhaps I am not understanding requestScope in Spring?
Any help is greatly appreciated. This thing is being a real thorn in my side.