File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts Plugin - Getting webapplicationcontext or service factory in struts plug-in class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Plugin - Getting webapplicationcontext or service factory in struts plug-in class" Watch "Struts Plugin - Getting webapplicationcontext or service factory in struts plug-in class" New topic
Author

Struts Plugin - Getting webapplicationcontext or service factory in struts plug-in class

Saket Pandit
Greenhorn

Joined: May 07, 2011
Posts: 1
I am using spring and struts in my application.
I have wired all the service and dao beans in the application context xml, which gets loaded fine on application start up.

I want to fetch some values from database on start up into some variables of my constants file.
I am using struts plugin for this.
But i am not sure how do i get the service factory class inside plugin class. I can get webapplicationcontext inside myaction class as it extends DispatchAction.
But my plugin class just implements PlugIn interface of struts.

How do i get a service factory in the plugin on start up of the application.. ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts Plugin - Getting webapplicationcontext or service factory in struts plug-in class