Saravanan, This point has been discussed in the last 30 days. It usually came down to the idea that tiles has already started writing to the output stream so the headers are already committed, and often sent already. If you want do perform business conditions like that, I recommend you put them into your action and make a forward which your action can use INSTEAD of your tile.
Regards, David -----Original Message----- From: Saravanan Veerappan [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 17, 2004 5:07 PM To: [EMAIL PROTECTED] Subject: tiles and redirect (non-struts application) I have a existing application (non-struts) and i would like to utilize tiles to take advantage of templates for layout. When i inlude redirect in the tiles body the redirection doesn't work saying response has been already comitted. Any suggestions? Here is my sample code <tiles:insert page="/layout.jsp" flush="false"> <tiles:put name="header" value="/includes/header.jsp"/> <tiles:put name="left-nav" value="/includes/left-nav.jsp"/> <tiles:put name="body" value="/jsp/body.jsp"/> <tiles:put name="footer" value="/includes/footer.jsp"/> </tiles:insert> body.jsp ------------ if(bussiness_conditions){ response.sendRedirect("someother.jsp"); } else{ //Show response here. } __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]