it will overwrite the <result type="tiles" name="input">addHeparinMedication.tiles</result> addHeparinMedication.tiles??
Thanks On Fri, Sep 9, 2011 at 10:07 AM, Antonio Petrelli < [email protected]> wrote: > > > 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 > -- Confidentiality Notice ------------------------------- THIS INFORMATION IS INTENDED ONLY FOR THE USE OF THE ADDRESSEE AND MAY CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM DISCLOSURE UNDER APPLICABLE LAW. IF YOU ARE NOT THE INTENDED RECIPIENT, OR THE EMPLOYEE OR AGENT RESPONSIBLE FOR DELIVERING THIS MESSAGE TO THE INTENDED RECIPIENT, YOU ARE HEREBY NOTIFIED THAT ANY DISSEMINATION, DISTRIBUTION OR COPYING OF THE COMMUNICATION IS STRICTLY PROHIBITED. IF YOU HAVE RECEIVED THIS COMMUNICATION IN ERROR, PLEASE NOTIFY IMMEDIATELY AT [email protected] OR BY TELEPHONE AT 817-458-1764. THANK YOU.
