jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karr, David" <David.K...@wamu.net>
Subject RE: Include a file with custom tags
Date Wed, 26 Mar 2003 16:44:56 GMT
First of all, if you use an include DIRECTIVE ("<%@include ..."), the
included file is included before the JSP compiler goes to work, so you
only need taglib declarations in one place.

I would show your exact taglib declarations and the tags you're trying
to use.

I'd also want to know what web container and version you're using.

> -----Original Message-----
> From: Giovanni Formenti [mailto:formenti@ariadne.it]
> 
> Hallo,
> I'd like to know if it's possible to include into a JSP page another
JSP
> page with some custom tags. I try with <%@ include file="tags.jsp" %>
or
> <jsp:include...> or <%="content_of_tag.jsp" %> and it works but the
custom
> tags in the "tags.jsp" file aren't parsed as custom tags, they stays
the
> same as in "tags.jsp".
> For example:
> --------------
> main.jsp:
> [... I include taglibs declaration, sure...]
> <html:form ...>
> <%@ include file="tags.jsp" %>
> </html:form ...>
> [...]
> --------------
> tags.jsp:
> [... I include taglibs declaration, sure...]
> [...]
> --------------
> the result:
> <form ...> //right parsed
> <html:text ...>  //not parsed!!
> </form ...> //right parsed
> ---------------
> instead of:
> <form ...>
> <input type="text" ...>
> </form ...>
> 
> There is a way to do this (maybe in a servlet that "compile" tags.jsp
and
> then "include" it in the main JSP)?
> Thanx for any help!!
> 
> Giovanni
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org


Mime
View raw message