• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ServletRequest.getAttribute()

 
Cameron Park
Ranch Hand
Posts: 371
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I was wondering at what stage was attributes in ServletRequest.getAttribute() specified?
Thank you.
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 371
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh..I see. Thanks.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic