Thanks Tib And Jagdish.

----- Original Message -----
From: "Gemes Tibor" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 21, 2003 11:22 AM
Subject: Re: Getting ServletConfig and ServletContext.


2003. janu�r 21. 10:58 d�tummal Simon Kelly ezt �rtad:
> Hi,
>
> Does anyone know how to access ServletConfig and ServletContext from
within
> any class derived from the org.apache.struts.action.Action class?

There is a field called servlet, so you can use servlet.getServletContext();

http://jakarta.apache.org/struts/api/org/apache/struts/action/Action.html#se
rvlet

Hth,

Tib

--
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]>

Reply via email to