I don't see any problems doing it that way. Unless you're using 1.0.2 I would seriously consider using Tiles. I don't expect template to be removed but I also don't expect it to be enhanced when a superior templating library exists.
David >From: "Smith, Johnathan M." <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> >Subject: Downside with templates >Date: Wed, 16 Oct 2002 17:35:46 -0400 > >I have a template like the one coded below. I would like to know the >downside if any of using a parameter for the body insert jsp file? > >We are only coding it this way due to the project manger does not feel the >need to make a template for each one so we are going to pass a parameter >called body to the jsp and have it add the file at runtime. Please tell me >any downsides to this. Also I am using WSAD any way to see the source for >this? > ><%@ page language="java" %> ><%@ page import="javax.servlet.http.*" %> ><%@ page import="javax.servlet.jsp.*" %> ><%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %> ><%@ taglib uri="/WEB-INF/cdd.tld" prefix="cdd" %> > ><template:insert template="TempTest.jsp"> ><template:put name="header" content="header.jsp"/> ><template:put name="navbar" content="navbar.jsp"/> ><template:put name="body" content="<%= request.getParameter(\"body\") %>"/> > ></template:insert> > >-- >To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> _________________________________________________________________ Broadband? Dial-up? Get reliable MSN Internet Access. http://resourcecenter.msn.com/access/plans/default.asp -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>