First off, it's a very good rule to not break up opening and closing HTML tags into separate files. Second, this is required when your tags are custom tags: the include file is its own compilation unit, so as far as the interpreter is concerned the closing tag doesn't exist unless it is in the same file.
It's far better to a) use Tiles instead of include files, and b) make a single "main" page that contains your <html:html></html:html> tags, body tags, and so forth. The sub-tiles will populate your body elements. In any case, Jasper is doing what it should. Put your opening and closing tags in the same file. In the case of JSPs, it's not just a good idea, it's the law. -= J > -----Original Message----- > From: Joe Krause [mailto:[EMAIL PROTECTED] > Sent: Friday, August 01, 2003 2:59 PM > To: '[EMAIL PROTECTED]' > Subject: Using Sturts-HTML tags in Template > > > I am trying to place the bulk of my navigation and HTML > header code into a > header.jsp file. Each JSP view page then includes a header.jsp and a > footer.jsp file using the following: > > > > <%@ include file = "/templates/header.jsp" %> > > > > // Page specific implementation > > > > <%@ include file = "/templates/footer.jsp" %> > > > > This works great. But when I added the <%@ taglib > uri="/WEB-INF/struts-html.tld" prefix="html" %> taglib > directive and made > <html> become <html:html> in the header.jsp file and </html> become > </html:html> in the footer file, I get the following error: > > > > org.apache.jasper.JasperException: > /WEB-INF/jsp/admin/employee/list.jsp(16,0) /templates/header.jsp(39,0) > Unterminated tag > > > > > > Is there a way to have the <html:html> and the </html:html> tags be in > different physical .jsp files? I thought that by using the > PAGE DIRECTIVE > INCLUDE versus the TAGLIB INCLUDE I would be assured that the > pages would be > included at compile time and thus work. > > > > Please advise! > > > > Joe > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]