tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Ringwood <tringw...@yahoo.com>
Subject RE: Custom Tags inside JSTL tags.
Date Tue, 09 Jul 2002 17:36:01 GMT
It doesn't have same output.

Maybe my custom tag isn't returning the correct value?

tim

--- Martin Cooper <martin.cooper@tumbleweed.com>
wrote:
> Just to see if your tag's output is being handled
> correctly, how about
> trying this:
> 
>     <c:set var="xml">
>       <tim:profile/>
>     </c:set>
>     <c:out value="${xml}"/>
> 
> You should see the same as if you'd just used:
> 
>     <tim:profile/>
> 
> --
> Martin Cooper
> 
> 
> > -----Original Message-----
> > From: Tim Ringwood [mailto:tringwood@yahoo.com]
> > Sent: Tuesday, July 09, 2002 9:45 AM
> > To: taglibs-user@jakarta.apache.org
> > Subject: Custom Tags inside JSTL tags.
> > 
> > 
> > I have the following basic example, which has hard
> > coded XML, working:
> > 
> > <c:import url="profile.xsl" var="xslt"/>
> > <x:transform xslt="${xslt}">
> > <?xml version="1.0" encoding="ISO-8859-1" ?> 
> > <profile><zip>12603</zip></profile>
> > </x:transform>
> > 
> > But my XML is dynamic, and my custom tag:
> > <tim:profile/> exports out valid XML.
> > 
> > So I thought:
> > 
> > <c:import url="profile.xsl" var="xslt">
> > <x:transform  xslt="${xslt}">
> > <tim:profile/>
> > </x:transform>
> > 
> > Would work but it doesn't. Instead I get nice
> blank
> > screen and no errors. I asssume this is because my
> > custom tag is being treated as the XML not as a
> custom
> > tag. 
> > 
> > So how I can my custom tag to spit out XML and
> then
> > have it transformed.?
> > 
> > thanks again,
> > 
> > tim
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Sign up for SBC Yahoo! Dial - First Month Free
> > http://sbc.yahoo.com
> > 
> > --
> > To unsubscribe, e-mail:   
> <mailto:taglibs-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:taglibs-user-help@jakarta.apache.org>
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:taglibs-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:taglibs-user-help@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

--
To unsubscribe, e-mail:   <mailto:taglibs-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@jakarta.apache.org>


Mime
View raw message