[jdom-interest] Building document with element containing namespace reference without declaring namespace

J S ladyslipper98201 at yahoo.com
Tue May 28 10:43:33 PDT 2002


I tried your solution but it doesn't work. 
Namespacing the html wouldn't seem to make sense in
this case because the tag that I am putting into the
jsp isn't html it is jsp.  The problem is that when
the jsp compiler turns the jsp into a servlet it
doesn't recoignise the namespaced custom java tag and
thus in the resulting servlet - or javaclass - the
custom tag is represented by an out.println() instead
of a javaclass method call.

Thanks for the thought though, any other ideas out
there?

Jo

I'll have to attack this from both sides and see if
there isn't a way to namespace a custom java tag and
hav e it recoignized.


--- jean-guillaume.battaglia at inexware.fr wrote:

Hi.
 
I assume there is a <html> tag in your JSP.
 
So you can declare the namespace in this tag and use
it afterwards.
 
Example :
 
<html xmlns:javaCustomTag="myHost/myApplication">
 
<!-- All the classic tags you want -->
 
<javaCustomTag:getName property="propertyName"/>
 
</html>
 
I have not tested this solution but I think this could work.

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com



More information about the jdom-interest mailing list