I've consider that, but the problem is that i want to define
dinamically the path of action, but to do that i need
HttpServletRequest object and inside init() i don't have access to
that object. I want to use httpServletRequest to extract server name
and context name.

2010/6/23 Gustavo Felisberto <gustavo.felisbe...@wit-software.com>:
> Create a servlet that makes a request to the action.
>
> Gustavo Felisberto
>
> On 23 de Jun de 2010, at 19:03, Oscar <oscar.kalde...@gmail.com> wrote:
>
>> Hi to all, i have the next situation: I need to call an action on
>> application startup like you can call a servlet on application startup
>> by setting <load-on-startup> parameter servlet on web.xml . I can't
>> use a servlet because i need to trigger my interceptors that
>> initialize JPA EntityManager . Is there a way to achieve this?
>>
>> Best regards.
>>
>> --
>> Oscar Calderón
>> SCJP 6
>> http://www.javahowto.net/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
Oscar Calderón
SCJP 6
http://www.javahowto.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to