tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kin-Man Chung <Kin-Man.Ch...@Eng.Sun.COM>
Subject Re: problem w/ Struts tags in file includes
Date Fri, 09 May 2003 17:43:17 GMT
The spec (JSP 1.2 spec, JSP.2.3.3) says

	"The start tag cannot be on one file while the end tag is in
Resin is just not spec conformant, though more useful in practice, IMO.

> Date: Fri, 09 May 2003 11:14:22 -0400
> From: TJK <>
> Subject: problem w/ Struts tags in file includes
> To:
> I'm new to this list, but I'm writing in to inquire if there's a known 
> issue regarding the use of Struts taglibs in Tomcat when they're used 
> in file includes (<%@ include file...)
> I normally do dev work on Resin, but a client wanted to deploy on 
> Tomcat, so I moved the application over to the latest version (4.1.24) 
> of Tomcat, and got a JSP compile error.  The client is using 4.0.6, 
> which also exhibits the same problem.
> Further investigation turned up this interesting problem.  It seems to 
> only occur with the <html:html> tag.
> The jsp page looks sorta like this.
> <%@ include file="/taglibs.jsp" %>   // includes all tld declarations
> <%@ include file="/header.jsp" %>    // header stuff which includes the 
> <html:html> tag
> (page contents... w/ struts tags in it)
> <%@ include file="/footer.jsp" %>    // footer stuff, which includes 
> </html:html>
> The above example throws a JSP compile error.  It says it cannot find a 
> closing </html:html> element.
> After much more messing around, I found out to my surprise that by 
> moving both <html:html> tags (both the opening and closing tags) out of 
> the header include files and into the actual .jsp file itself, the page 
> will compile and render properly.  So it would seem that by using it in 
> a include tag, there's something going awry.
> I searched all around the mailing lists and Google, and I did find one 
> other guy who complained of an simlilar problem, but no reply/solution 
> was found.  So I'm asking on this list if anyone has heard of this 
> issue before, and has any idea of what a fix or solution could be?
> This same webapp works just fine under Resin 2.1.9.  So that is why I 
> am asking the tomcat-dev.
> thanks,
> -tim
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message