Hi, I am using the template as follow. And viewcart.jsp is the content. In viewcart.jsp, I have error checking. If found errors, will be forward to another page. But I can't do forward, beacuse title.jsp, header.jsp etc are included first. JSP will flush the code when do include. I don't want to put error checking at follow instead of viewcard.jsp. So what I should do? Any suggestion or good pattern for this kind situation?
Thanks Harden ==================================================== <%@ taglib uri='/WEB-INF/tlds/struts-template.tld' prefix='template' %> <template:insert template='/template.jsp'> <template:put name='title' content='title.jsp' /> <template:put name='header' content='/header.jsp' /> <template:put name='mainmenu' content='/mainmenu.jsp' /> <template:put name='sidebar' content='/sidebar.jsp' /> <template:put name='content' content='/viewcart.jsp' /> <template:put name='footer' content='/footer.jsp' /> </template:insert> ==================================================== -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>