You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Harden ZHU <ha...@sympatico.ca> on 2001/11/13 10:17:21 UTC

Struts' Template

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Nested tags/properties - Proposal for adoption

Posted by Arron <ar...@keyboardmonkey.com>.
This should be the last code update until people start using it to send 
in issues / recommendations.
This particular one is to allow the options tag to work in the nested 
context as it had to look past the select tag for it's nesting 
arrangement. Was found by a work mate as we're using more of its features.

Example is also updated to show all of the form element types.

Only the one java file is attached. For a full update you can go to...
http://www.keyboardmonkey.com/downloads/struts/index.html
(link is different to previous. moved it out of the web app so I can 
update easier)

Running example...
http://www.keyboardmonkey.com/StrutMonkey


Arron.