aspose file tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes ServletRequestListener in DD Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "ServletRequestListener in DD" Watch "ServletRequestListener in DD" New topic
Author

ServletRequestListener in DD

Vimal Sharma
Greenhorn

Joined: Oct 21, 2008
Posts: 4
Do we register ServletRequestListener/class inside a <servlet> tag or outside ?
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

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

Joined: Oct 21, 2008
Posts: 4
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

Joined: Jan 28, 2008
Posts: 5575

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ServletRequestListener in DD
 
Similar Threads
Performing checks on each request
Single Sign On with JSF
ServletRequestListener problem
Inconsistency in ServletRequestListener
Listeners Vs Filters