This week's book giveaway is in the Other Open Source APIs forum. We're giving away four copies of Storm Applied and have Sean Allen, Peter Pathirana & Matthew Jankowski on-line! See this thread for details.
i was trying to store request object in session variable. but that session variable is empty on the next page. but i can access that variable in the page, where it is stored. is it not possible to store request object in session? i was trying to access the request object in a frameset. is there anyway to pass request object to a particular frame?
Yup, it's a really bad idea and I hope it doesn't work - if somehow it does, the behaviour would be indeterminate ie wierd and unpredictable.
As some pole have hinted, you're better moving the specific request-scope data to the session if you want to hold on to it, don't try to hold the request object, it represents something completely different.
Storing the request object ANYWHERE is a bad idea. Request objects are managed by the servlet container and you MUST NOT try to hang on to one past the end of a single request. If you need to keep all the parameters try something like getParameterMap(). Bill