• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

passing a request object

 
Bhavna Jharbade
Ranch Hand
Posts: 69
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
gud morning everybody!!!
can anyone tell me how to pass a request object from one jsp page to another???
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic