• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ServletRequestListener in DD

 
Vimal Sharma
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do we register ServletRequestListener/class inside a <servlet> tag or outside ?
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Vimal Sharma:
Do we register ServletRequestListener/class inside a <servlet> tag or outside ?


what is the ServletRequestListener/class?listener class configure in DD using <listener> element and outside the <servlet>
 
Vimal Sharma
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i meant the class(MyServletRequestListener) implementing ServletRequestListener interface. Will this object(MyServletRequestListener) be invoked for all the requests ?
Can we make this object(MyServletRequestListener) be invoked only for the requests from a particular servlet by keeping <listener> tag inside <servlet> tag?


please suggest. Thanks in advance

SCJP 1.4
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Vimal Sharma:
Can we make this object(MyServletRequestListener) be invoked only for the requests from a particular servlet by keeping <listener> tag inside <servlet> tag?


as far as i know, not possible
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic