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 Servlets and the fly likes serveltrequestlistener problem 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 » Java » Servlets
Bookmark "serveltrequestlistener problem" Watch "serveltrequestlistener problem" New topic
Author

serveltrequestlistener problem

sitaram irrinki
Ranch Hand

Joined: Feb 16, 2005
Posts: 158
I implemented ServletRequestListener and placed it in tomcat and weblogic. My intension is when ever there is a request to the container I want to execute some code. But this listener is working fine in tomcat and it is not working in weblogic.
even though the servletRequestListener is working finein tomcat, In destroy(ServletRequestEvent sre) of the listener I am trying to get the ServletRequest on which this ServletRequestEvent is generated by ServletRequestEvent.getRequest() .compilation is going fine and when I place this in tomcat it is throwing an internal server error saying that ServletRequestEvent.getRequest() not found.why is it saying like that.
James Carman
Ranch Hand

Joined: Feb 20, 2001
Posts: 580
Have you tried calling getServletRequest() instead?


James Carman, President<br />Carman Consulting, Inc.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: serveltrequestlistener problem
 
Similar Threads
Listeners Vs Filter
about RequestListners ??
Servlet Request Listener Query
HttpServletRequest
Conversational state chapter question