Hi
Are there any convenient way of accessing the model from the HttpServletRequest submitted?
I would like to inject a model value as a parameter in the same request..
Thank you!
Hi
Are there any convenient way of accessing the model from the HttpServletRequest submitted?
I would like to inject a model value as a parameter in the same request..
Thank you!
Sincerely,
/The Cantor
"Murphy was an optimist"
(The O'Toole commentary on Murphy's Law)
I don't really know what you're getting at.
The process is as follows:
- request is submitted and handled by a controller
- controller returns ModelAndView
- in case of a JstlView for example, the model (the map from the ModelAndView object) is merged into the HttpServletRequest as attributes, hence accessible through the HttpServletRequest in your JSPs). Other View subclasses (VelocityView, XsltView) might make the model accessible using something else, the VelocityContext for example).
regards,
Alef
Hi and thanks for answering.
That clarifies it, I'm a victim of my own poor design att the moment, and I'm forced to get a string put in the model as a request parameter, not attribute. But I'll try to find a workaround.
Thanks again!
Sincerely,
/The Cantor
"Murphy was an optimist"
(The O'Toole commentary on Murphy's Law)