2011/9/9 Muneer Malik <[email protected]> > For example at the end of a servlet call. > If you use a framework, then you can do it at the end of an > action/command/whatever, wherever you have access to the request/response > pair. > > Antonio > > For your above comment, I cannot put the code in the action since after the > action is completed > the Struts2 looks at the tiles destination and forwards the request. > > For example: > <action name="submitHeparinMedication" > class="net.polymorphic.emr.heparinmedication.action.submitHeparinMedication"> > <interceptor-ref name="patientProfileInterceptor"></interceptor-ref> > <interceptor-ref name="secureStack"></interceptor-ref> > <result name="success" type="tiles">submitHeparinMedication.tiles</result> > <result type="redirect" name="error">/welcome.action</result> > <result type="tiles" name="input">addHeparinMedication.tiles</result> > </action> > > so are you suggesting may be the code has to go somewhere in the struts2 > tiles plugin? >
No, I suggest to put that code at the end of your "SubmiteHeparinMedication" execution. The new definition will last for the entire request and then it is wiped. Antonio
