This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Help Needed in Struts Plugin Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Help Needed in Struts Plugin" Watch "Help Needed in Struts Plugin" New topic
Author

Help Needed in Struts Plugin

kiruvembai thalam
Greenhorn

Joined: May 05, 2004
Posts: 2
Hi Everyone,

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

ServletContext context = servlet.getServletContext();
context.setAttribute(anyname,new anyClassName());

But, I don't want the object creation alone in the Plugin. I need to run a method using the object created within the Plugin.

Can someone help in this regard ?

Awaitng your earlier replies,
Kiruba
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Help Needed in Struts Plugin
 
Similar Threads
Struts 2 - JasperReport problem
A small chicken and the egg situation!
Plugin init method is not called
Creating build using maven in eclipse
Struts framework question.. thanks..