File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes passing a request object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "passing a request object" Watch "passing a request object" New topic
Author

passing a request object

Bhavna Jharbade
Ranch Hand

Joined: Sep 08, 2005
Posts: 69
gud morning everybody!!!
can anyone tell me how to pass a request object from one jsp page to another???


SCJP1.4 (86%)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

"Bhavna J",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

You would use a forward to route the request to another resource which could be a JSP.

Be aware that you cannot do this once the response has been comitted (usually by having the output buffer flushed).
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

how to pass a request object


My previous answer assumes that by "request object" you mean an instance of HttpServletRequest.

If by "request object" you mean a scoped variable in request scope (and also what you mean by "pass"), the answer may be different.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: passing a request object