Hi Maciej,
You can implement ServletContextListener
and register it in web.xml like this:
< listener >
< listener-class >com.ppp.oko.struts.AppListener< /
listener-class >
< / listener >
just mind extra spaces i've added to xml tags.
Best greetings,
Paweł Wielgus.
2010/2/26 Maciej Radochonski <[email protected]>:
> Further on the subject. For my persistence layer I use iBatis. With Struts1
> I had been using plugin to load the connection object on start-up. Any
> suggestion on how can I achieve similar effect with Struts2?
>
> Thank you,
> Maciej Radochonski
>
> On Fri, Feb 19, 2010 at 3:01 PM, Maciej Radochonski
> <[email protected]>wrote:
>
>> Thanks for the answer.
>>
>> Maciej
>>
>>
>> On Fri, Feb 19, 2010 at 2:53 PM, Lukasz Lenart <
>> [email protected]> wrote:
>>
>>> 2010/2/19 Maciej Radochonski <[email protected]>:
>>> > Currently I am migration one of my applications from Struts1 onto
>>> Struts2. I
>>> > am using several Struts1 PlugIn's (mainly for data source configuration)
>>> > that are loaded on start up of the app. Could someone advise me if such
>>> a
>>> > functionality, or similar, is available in Struts2?
>>>
>>> No, use Spring, Guice or Hibernate - there are plugins to connect such
>>> frameworks with Struts 2
>>>
>>>
>>> Regards
>>> --
>>> Łukasz
>>> http://www.lenart.org.pl/
>>> Kapituła Javarsovia 2010
>>> http://javarsovia.pl
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]