jay chris

Greenhorn
+ Follow
since Feb 10, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by jay chris

Hi all, I would like to display an image (animated gif) to my user's when they wait (and wait and wait) for FOP to render my PDF. Does anybody have
a snippet of code that can do this? Currenty I open up a new window using javascript and the page name has a PDF extension.
Thanks
I am using FOP and I have a java String representation of XML which I create dynamically by writing out the properties of my model. Anyway my XML is too big for a java String. What and how is another way of dynamically creating XML not using java Files or Strings and still use the transformer?
Here is my code:
//set up XML using java String
Source xmlSource = new StreamSource(new StringReader(xmlString));
//set up transformer
Source xsltSrc = new StreamSource(new File(xslParam));
TransformerFactory transformerFactory = TransformerFactory.newInstance();
Transformer transformer = transformerFactory.newTransformer(xsltSrc);
//start the transformation and render
transformer.transform(xmlSource,res);
[ February 10, 2004: Message edited by: jay ]
[ February 10, 2004: Message edited by: jay ]
Good point Tony. The problem I had with StringReader is that my String representation of the xml source is limited by the capacity if the String Object. I had an experience when my XML source had more characters than a java String can hold.
BTW - are you saying to put the xml in a byteStream?