I think you're wrong but doing well ^g^ You need to include in each page the references to the tag-libs you're using and I would not call that "the code" of the page, maybe the header or the include section ^^
On 8/11/07, Jim Reynolds <[EMAIL PROTECTED]> wrote: > > I have something like this: This is the layout, or tiles template as > the docs state. > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> > <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles"%> > > <html:html> > <head> > <title><bean:message key="global.title"/></title> > <html:base/> > </head> > <body topmargin="0" leftmargin="0" bgcolor="#FFFFFF"> > > <!-- Header page information --> > <tiles:insert attribute="header"/> > > So on that page, I have the taglib uris for html, bean, etc. > > Now lets say I have this which uses the layout > <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %> > > <tiles:insert page="/layouts/storefrontDefaultLayout.jsp" flush="true"> > <tiles:put name="header" value="/common/header.jsp" /> > <tiles:put name="menubar" value="/common/menubar.jsp" /> > <tiles:put name="body-content" value="/index-body.jsp" /> > <tiles:put name="copyright" value="/common/copyright.jsp" /> > </tiles:insert> > > So in each of my pages now, such as header.jsp, menubar.jsp, etc. I > have to put the html, bean, etc tags in each of these put pages., like > so: > menubar.jsp (example: > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> > > So basically, I am finding myself putting in the taglibs in each page > I am put(ting) in my template. So I feel I am duplicating too much > code. > > Does this make sense? Possibly, I am doing something wrong? > > Thanks, > > > On 8/10/07, Dave Newton <[EMAIL PROTECTED]> wrote: > > Hmm; repeat? > > > > --- Jim Reynolds <[EMAIL PROTECTED]> wrote: > > > Struts 1.29 app that uses tiles definitions. > > > Question is: I am finding myself having to call the > > > > > taglib in the layout, and also in each tile. > > > > Remember; every JSP is a standalone servlet. > > > > d. > > > > > > > > > > > ____________________________________________________________________________________ > > Need a vacation? Get great deals > > to amazing places on Yahoo! Travel. > > http://travel.yahoo.com/ > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "Nada fija tan intensamente una cosa a la memoria como el deseo de olvidarla." (Michel de Montaigne) http://yayocaturas.blogspot.com/