tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Duffy <duff...@yahoo.com>
Subject Re: Question Regarding JSTL <x:parse> tag
Date Fri, 16 Jan 2004 14:48:49 GMT

I answered one of my questions: adding the <x:parse
scope="session"/> attribute puts the parsed DOM into
session scope.  

If I can verify that the classes are org.w3c.dom I'm
all set. - MOD


--- Michael Duffy <duffymo@yahoo.com> wrote:
> 
> I've got a fundamental question regarding the XML
> tags
> in JSTL.
> 
> Which DOM scheme are they using?  The classes in the
> org.w3c.dom package?
> 
> I'm asking because I've got an application that has
> a
> front controller servlet and a JSP response page. 
> The
> servlet does a query, gets an XML stream, puts it
> into
> session scope, and sends down the response JSP.
> 
> The response JSP takes the XML stream out of session
> scope and uses the <x:parse> tag into its DOM tree
> and
> iterates through to display values using the
> <x:forEach> tag.
> 
> I'd like to put the parsed DOM tree back into
> session
> so it can be re-used by the front controller servlet
> on the next request.  I'm assuming that I need to
> put
> the DOM var into session scope.
> 
> So here are my questions: 
> 
> (1) How do I put the parsed DOM var into session
> scope
> for reuse by the servlet?
> (2) Am I correct to assume that the servlet will use
> the org.w3c.dom classes to walk the tree once it has
> it?  
> 
> Thanks very much - MOD
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Hotjobs: Enter the "Signing Bonus"
> Sweepstakes
> http://hotjobs.sweepstakes.yahoo.com/signingbonus
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> taglibs-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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


Mime
View raw message