On Wed, 3 Apr 2002, Bryan P. Glennon wrote:

> The problem is with the two include files. If I don't repeat the <%
> taglib> declarations in the included files, they don't work. It seems
> to me that once the libs are declared, that declaration should hold
> for the remainder of the page. I'm sure I'm missing something here,
> and I'm looking for enlightenment.

When you include files with <%@ include %>, they are incorporated into the
source file, and you wouldn't need to re-declare taglibs with <%@ taglib
%>.  However, <jsp:include> lets you include full, stand-alone pages (and
other resources).  More formally, <jsp:include> includes a separate
translation unit, so the target page will still need its own declarations.

-- 
Shawn Bayern
Author, "JSP Standard Tag Library"  http://www.jstlbook.com
(coming this summer from Manning Publications)


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to