This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes can we put requestattribute in filter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "can we put requestattribute in filter" Watch "can we put requestattribute in filter" New topic
Author

can we put requestattribute in filter

Saurabh Naik
Ranch Hand

Joined: Apr 24, 2008
Posts: 87
Hello
There are 2 servlets ServletOne & ServletTwo. I am using request.getRequestDispatcher().forward method to access ServletTwo. While mapping to ServletTwo I am using filter to setAttribute on request. but when I access it in ServletTwo its giving me null value . please explain this.

Thank you


SCJP 6 (88%), SCWCD 5 (78%), preparing for SCBCD
Vishwanath Krishnamurthi
Ranch Hand

Joined: Jun 04, 2007
Posts: 331
Did the request from servlet1 go to the filter? You checked that?


Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can we put requestattribute in filter
 
Similar Threads
How to transfer object from servlet tp JSP and back to Servlet
request.getAttribute in onSuccessfulAuthentication method
servlet communication on different servers.
Servlets - Request - Threads question?
How to transfer object from servlet tp JSP and back to Servlet