struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raghuveer V" <raghuve...@infotechsw.com>
Subject RE: Struts1 Plugin to Struts2
Date Fri, 01 Oct 2010 13:18:33 GMT
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:davelnewton@gmail.com] 
Sent: Friday, October 01, 2010 6:17 PM
To: Struts Users Mailing List; raghuveerv@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 <raghuveerv@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

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message