Yes Dave,

I want to implement Struts2 specific.

Application context listener will be called before application and
struts.xml configurations.

 

I want to do it from struts.xml rather then from web.xml.

How would it be if I create custom interceptor and use init and destroy for
this.

I will not be using this interceptor stack anywhere in my action mappings.

The reason for interceptor stack is, it will be initialized during
application startup from struts.xml

 

  _____  

From: Dave Newton [mailto:davelnew...@gmail.com] 
Sent: Friday, October 01, 2010 6:17 PM
To: Struts Users Mailing List; raghuve...@infotechsw.com
Subject: Re: Struts1 Plugin to Struts2

 

An application context listener--that way it's not S2-specific.

 

Dave

On Fri, Oct 1, 2010 at 5:03 AM, Raghuveer V <raghuve...@infotechsw.com>
wrote:

I have scenarios of few activities during application startup and shutdown
in struts1 application which need to be used in struts2 application.



Example:

Below struts2 plug-in needs to be used in struts2.



<plug-in className="com.test.util.TestListener">

<set-property property="devlFile" value="/TestConfig/test.properties"/>

</plug-in>



Any best thoughts of implementing this.



Regards,
Raghu

 

Reply via email to