tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: Using namespaces within XML documents produced from JSPXs
Date Wed, 28 Sep 2011 16:48:31 GMT
2011/9/28 Paul Wilson <paulalexwilson@gmail.com>:
> Hi there,
>

1. What exactly build of Tomcat x.y.z  you are using?

> I'm trying use taglibs with a JSPX page, but also specify a namespace
> declaration for elements rendered by the JSP. An example:
>
> <foo:xyz xmlns:foo="path/to/foo/ns" xmlns:bar="path/to/bar/ns">
>   <foo:p/>
>   <bar:q/>
> </foo:xyz>
>
> In the above example, I have a taglib registered for only 'foo', whereas I'd
> like 'bar' to be considered verbatim and added to the body content as such.
> What actually happens is the xmlns declaration is removed and is not made
> available to the taglib component processing 'foo:xyz'. Jasper then
> complains that 'bar' is not bound.
>

2. What happens if you wrap all with <jsp:root> element and move your
xmlns:bar there?
(and not xmlns:foo like in your example below)

> I've also tried:
>
> <jsp:root xmlns:jsp="..." version="2.1" xmlns:foo="path/to/foo/ns">
>   <foo:xyz xmlns:bar="path/to/bar/ns">
>         <foo:p/>
>         <bar:q/>
>   </foo:xyz>
> </jsp:root>
>

3. What version of specification is specified at the top of your web.xml file?

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message