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 <[email protected]>: > Create a servlet that makes a request to the action. > > Gustavo Felisberto > > On 23 de Jun de 2010, at 19:03, Oscar <[email protected]> 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: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Oscar Calderón SCJP 6 http://www.javahowto.net/ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

