The Action and ActionForm both should have the servlet variable initialized.
Thats a better way of getting the ServletContext:

   servlet.getServletContext();

Niall

----- Original Message ----- 
From: "Michael Jouravlev" <[EMAIL PROTECTED]>
Sent: Tuesday, May 10, 2005 5:09 PM


request.getSession().getServletContext();

I guess, servlet context makes sense even without session, but this
seems to be the easiest way to obtain it through the request, which is
passed to your reset(), validate() and execute() methods.

On 5/10/05, Nils Liebelt <[EMAIL PROTECTED]> wrote:
> Can the servletcontext declared as static:
>
>         private static ServletContext servletContext;
>
> Not sure about it? Makes sense to me.
>
> GreetZ
>
> Nils



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to