You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Bryan P. Glennon" <br...@bpgc.com> on 2002/04/04 02:35:30 UTC

JSP Include and tag lib declarations

I'm seeing some strange (or maybe intended) behavior with taglibs and
included files. Here's what I do:

<%@ taglib prefix="bean" uri="/WEB-INF/struts-bean.tld" %>
<%@ taglib prefix="html" uri="/WEB-INF/struts-html.tld" %>

Normal JSP/HTML stuff...

<html:form  action="/action.do" style="margin-botton:0m"> 

<TABLE>
	    <jsp:include page="/Common/foo1.jsp"/>
	    <!-- Page specific rows go here -->
</TABLE>
<HR>
<TABLE>
	    <jsp:include page="/Common/foo2.jsp"/>
	    <!-- More page specific rows here -->
</TABLE>

</html:form>

More standard jsp/html

(foo1 and foo2 just contain table rows but do use the struts bean tag.)

The problem is with the two include files. In foo1 I can omit the <%@
taglib> lines and it works fine. If I omit them from foo2, its contents
fail to display. Both foo1 and foo2 are well-formed, consisting only of
matching <TR></TR> and <TD></TD> elements. Both use the struts bean tag.

Any info is appreciated.

Cheers,
Bryan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>