Hi Reza, To get the ServletContext in an Action you can use: getServlet().getServletContext();
<btw> The servlet that getServlet() returns is the struts ActionServlet ('within' which all the actions execute). </btw> regards Andrew -----Original Message----- From: Reza Aliakbari [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 16, 2002 22:56 To: '[EMAIL PROTECTED]' Subject: Reading application object in action. Hi, How can I read application object in action section? As we now application is defined in jsp pages and is: ServletConfig config = getServletConfig(); ServletContext application = config.getServletContext(); Cheers -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>