This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes  getting servletconfig in ServletContextListener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark " getting servletconfig in ServletContextListener" Watch " getting servletconfig in ServletContextListener" New topic
Author

getting servletconfig in ServletContextListener

Manoj John
Ranch Hand

Joined: May 13, 2004
Posts: 36
Hi,
I am using tomcat 5.0.19 and struts1.1.In my application there is one ServletContextListener. In its contextDestroyed() method i need to make free all the resources using for my application.
How i can do it? is there any way to get the sevlet config there(using struts default ActionServlet).
or any other solution to destroy the servlet there. please help.......
Manoj John
Ranch Hand

Joined: May 13, 2004
Posts: 36
hello,
Nobody is there to help me ?...
please tell me how i get the reference of struts default servlet class in my ServletContextListener class ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getting servletconfig in ServletContextListener