in your action code:

        this.getServlet().getServletContext();

(actions are initialized with a reference to the ActionServlet object);

Andre Paradis

-----Original Message-----
From: Alex Colic [mailto:[EMAIL PROTECTED]]
Sent: September 10, 2001 11:22 AM
To: [EMAIL PROTECTED]
Subject: How to get context object while in Action


Hi, how do you get the servlet context object from within a Action
class. I notice that the
request.getSession.getServletContext is depreciated.

I need to get values from the web.xml file.

Thanks for the info.

Alex    



=====
Regards

Alex Colic, HBA, B. Ed
PopWare Inc. "Driving down the cost of conversions!"
E-Mail: [EMAIL PROTECTED]
Tel: 1-905-777-8171 ext. 104
Fax: 1-905-777-0132

__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo!
Messenger
http://im.yahoo.com

Reply via email to