With JSP, one way around this is to disconnect from the session before
placing it in the request, then use a scriptlet to reconnect to the
session before rendering the view. If for some reason you have a long
delay between the controller returning a request and the view actually
being rendered, this could help. Its hard for me to imagine a web app
where this would ever really occur, though. And if you are building a
genuinely enterprise-class app, you probably shouldn't be using this
pattern, as it kind of breaks MVC anyway. |