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 

Reply via email to