It's easier than that even. Your action class subclasses
org.apache.struts.action.Action which defines a protected instance of the
ActionServlet (servlet). So all you need to do from your action class is:

servlet.getServlerContext()...

Troy

-----Original Message-----
From: Nanduri, Amarnath [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 06, 2001 3:37 PM
To: '[EMAIL PROTECTED]'
Subject: RE: need ServletConfig object in Action class



Yeah. Use the form object that comes as an input parameter in the perform()
method.

I think the call is ...  form.getServlet().getServletContext()......


-----Original Message-----
From: Bever, Nick [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 06, 2001 4:36 PM
To: '[EMAIL PROTECTED]'
Subject: need ServletConfig object in Action class


Is there any way to access the Action controller's ServletConfig object from
an Action class?  
 Thanks.

Nick Bever
Tallan
Email: [EMAIL PROTECTED]

Reply via email to