You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by "Chen, Gin" <Gi...@tvratings.com> on 2002/05/29 22:16:44 UTC

xtags:parse

Why doesnt this work?
        <xtags:parse uri="<bean:write name='flowxml' scope='session'/>"
id="mydoc"/>
and yet <bean:write name='flowxml' scope='session'/> alone will return the
correct value
and using:

<jsp:useBean id="flowxml" class="java.lang.String" scope="session"/>
<xtags:parse uri="<%= flowxml %>" id="mydoc"/>
will work.

Is there a way to bring that String in from session without using any
scriplets or expressions at all?

Thanks,
-Tim

-------------------------------------
Gin-Ting Chen
Gin_Chen@tvratings.com
727-738-3000 x6549
Sun Certified Programmer
Sun Certified Web Component Developer
BEA Certified Developer

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: xtags:parse

Posted by Shawn Bayern <ba...@essentially.net>.
You can't use one JSP tag within another.  I would advise moving to JSTL,
where you can retrieve information out of the session using the expression
language.  In JSTL, what you're trying to do looks like this:

  <x:parse xml="${sessionScope.flowxml}" var="mydoc" />

-- 
Shawn Bayern
"JSP Standard Tag Library"   http://www.jstlbook.com
(coming in July 2002 from Manning Publications)

On Wed, 29 May 2002, Chen, Gin wrote:

> Why doesnt this work?
>         <xtags:parse uri="<bean:write name='flowxml' scope='session'/>"
> id="mydoc"/>
> and yet <bean:write name='flowxml' scope='session'/> alone will return the
> correct value
> and using:
> 
> <jsp:useBean id="flowxml" class="java.lang.String" scope="session"/>
> <xtags:parse uri="<%= flowxml %>" id="mydoc"/>
> will work.
> 
> Is there a way to bring that String in from session without using any
> scriplets or expressions at all?
> 
> Thanks,
> -Tim
> 
> -------------------------------------
> Gin-Ting Chen
> Gin_Chen@tvratings.com
> 727-738-3000 x6549
> Sun Certified Programmer
> Sun Certified Web Component Developer
> BEA Certified Developer
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>