commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Keese" <>
Subject [jelly] threads & xmlOutput
Date Thu, 22 May 2003 05:34:52 GMT
By default, the <thread> tag creates it's own XMLOutput object, writing to
System.out, rather than using the caller's XMLOutput object.  (The XMLOutput
argument to doTag() is ignored.)  I think the default should be to use the
caller's XMLOutput object.

For example, the following program has two XMLOutput objects, both writing
to System.out, but due to buffering inside the XMLOutput class, the output
gets garbled:

      <threads:thread var="myThread">
       <threads:join thread="${myThread}"/>


Output I want:

Of course, anytime you have multiple objects writing to the same xmlOutput
stream, you need to be careful, and do synchronization, in order to make
sure that you produce a valid XML document.


Also, is there any way to get access to the current xmlOutput stream?  Then
I could workaround by doing something like
     <threads:thread var="myThread" xmlOutput="${getCurrentXMLOutput()}">

But I can't find a function like that.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message