This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I want to create a new plugin in struts. Primary purpose of the new plugin is to automatically run a java file that needs two parameters which involves manual intervention. My question here , whether it is possible to run a java file while loading the container. ie.. Is there any way that ServletContext can execute a method in a java file while the application is loading. I know that we can create an instance of an class using ServletContext in our own Plugin like