struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Chaimungkalanont <mark.chaimungkalan...@au1.ibm.com>
Subject Accessing the "servlet" property at Action instatiation time
Date Tue, 22 Jul 2003 08:42:54 GMT
I'm trying to do some initialisation in my constructor. It calls other
classes and tries to pass the class the Application context. However, at
this stage, the "servlet" property has not been initialised in the Action
yet. I assume it must be possible to get the ServletContext from somewhere,
but I have no Idea where.

Any help would be much appreciated.

MyAction()
{
    super();
    OtherClass.doStuff(servlet.getServletContext());
}

cheers

mc


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message