Thanks for the quick reply Matt.... but doesnt basicStack and the defaultStack have the servlet-config interceptor ?
Rgds...VJ mraible wrote: > > It's possible that we have an interceptor missing from the stack in > struts.xml. You could also extend BaseAction and call > getSession().getServletContext(). > > Matt > > On 2/27/07, VJ22 <[EMAIL PROTECTED]> wrote: >> >> I have a very simple action which implements both the ServletRequestAware >> and >> the Preparable interface: >> >> "public class PWMLiteRequestCheck extends ActionSupport implements >> ServletRequestAware,Preparable" >> >> I have got both the methods defined : "public void >> setServletRequest(HttpServletRequest httpServletRequest) " and "public >> void >> prepare()" >> >> For this action I have configured the corresponding action like this >> >> <action name="viewChartPrel" >> class="com.pwmliteexp1.pwmLitexp1.web.action.PWMLiteRequestCheck"> >> <result name="success">/WEB-INF/pages/viewChart.jsp</result> >> <interceptor-ref name="basicStack"/> >> </action> >> >> While prepare() method is called the corresponding setServletRequest() >> method is never called resulting in a null pointer exception when I try >> to >> use the request object >> >> Any ideas ? >> -- >> View this message in context: >> http://www.nabble.com/ServletRequest-not-being-injected-......-tf3299028s2369.html#a9177050 >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > http://raibledesigns.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/ServletRequest-not-being-injected-......-tf3299028s2369.html#a9177155 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]