You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dave Newton <da...@gmail.com> on 2010/10/01 14:46:38 UTC
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 <ra...@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
>
>
RE: Struts1 Plugin to Struts2
Posted by Raghuveer V <ra...@infotechsw.com>.
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 <ra...@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