wood burning stoves 2.0*
The moose likes Servlets and the fly likes ServletRequest.getAttribute() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "ServletRequest.getAttribute()" Watch "ServletRequest.getAttribute()" New topic
Author

ServletRequest.getAttribute()

Cameron Park
Ranch Hand

Joined: Apr 06, 2001
Posts: 371
Hi, I was wondering at what stage was attributes in ServletRequest.getAttribute() specified?
Thank you.
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Originally posted by Cameron Park:
Hi, I was wondering at what stage was attributes in ServletRequest.getAttribute() specified?

They are important when you are chaining servlets/JSPs using forwarding or inclusion. Then you can use the request attributes to pass objects from one servlet/page to the other (e.g. request-scoped JavaBeans).
- Peter
Cameron Park
Ranch Hand

Joined: Apr 06, 2001
Posts: 371
Oh..I see. Thanks.
 
jQuery in Action, 2nd edition
 
subject: ServletRequest.getAttribute()