struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Andres <>
Subject RE: Struts' Template
Date Tue, 13 Nov 2001 09:41:51 GMT
Isn't it possible for you, to create the error page in the same way? You could include title.jsp,
header.jsp etc. on the error page, too, and so it would not be a problem to forward to this


-----Original Message-----
From: []
Sent: Tuesday, November 13, 2001 10:17 AM
Subject: Struts' Template


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?



 <%@ 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' />

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message