• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can we put requestattribute in filter

 
Saurabh Naik
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Vishwanath Krishnamurthi
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did the request from servlet1 go to the filter? You checked that?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic