• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help Needed in Struts Plugin

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic