myAction extends Action {
ServletContext sc = getServlet().getServletContext();
ServletConfig scf = getServlet().getServletConfig();
}
----- Original Message -----
From: "Simon Kelly" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 21, 2003 4:58 AM
Subject: Getting ServletConfig and ServletContext.
> Hi,
>
> Does anyone know how to access ServletConfig and ServletContext from
within
> any class derived from the org.apache.struts.action.Action class?
>
> Cheers
>
> Simon
>
> Institut fuer
> Prozessdatenverarbeitung
> und Elektronik,
> Forschungszentrum Karlsruhe GmbH,
> Postfach 3640,
> D-76021 Karlsruhe,
> Germany.
>
> Tel: (+49)/7247 82-4042
> E-mail : [EMAIL PROTECTED]
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>