You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Joe Krause <JK...@multivisioninc.com> on 2003/08/01 21:58:49 UTC

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