opensubscriber
   Find in this group all groups
 
Unknown more information…

f : fop-user@xml.apache.org 11 March 2005 • 6:10PM -0500

Re: FopServlet
by Jeremias Maerki

REPLY TO AUTHOR
 
REPLY TO GROUP




The modified servlet has the same functionality as the example servlet
in the distribution. You're welcome to do the example involving the
ProjectTeam yourself. I don't have the time.

On 11.03.2005 11:06:59 Ben Gill wrote:
> Are you not creating an XML file on disk with this version with:
>
> else if ((xmlParam != null) && (xslParam != null)) {
>                 Source src = new StreamSource(new File(xmlParam));
>
> I think it would be good to include an example of how to generate the PDF
> from a ProjectTeam without touching the disk?
>
> Ben
>
>
> -----Original Message-----
> From: Jeremias Maerki [mailto:dev.jeremias@gree...]
> Sent: 11 March 2005 08:26
> To: fop-user@xml....
> Subject: Re: FopServlet
>
>
> Here's a modified version of the servlet:
> http://cvs.apache.org/~jeremias/FopServlet.java
>
> BTW, while updating the file I found an opportunity for a little
> optimization. In the servlet's case the ByteArrayOutputStream should not
> be instantiated with the default constructor. This only allocates 64
> bytes initially. Every time the buffer runs out of space the old buffer
> is discarded and a new one with twice the previous space is allocated.
> If you do "new ByteArrayOutputStream(16384)" (or an even higher number
> depending on the documents you serve), you will get a slight performance
> improvement almost for free. :-)
>
> On 10.03.2005 13:02:22 Ben Gill wrote:
> > Maybe the example can be updated with my version?  I have not compiled
> this,
> > but I know it works...
>
>
>
> Jeremias Maerki
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml....
> For additional commands, e-mail: fop-user-help@xml....
>
>
> _____________________________________________________________________
> This message has been checked for all known viruses by the
> MessageLabs Virus Control Centre.
>
> This message has been checked for all known viruses by the MessageLabs Virus Control Centre.
>
>
> *********************************************************************
>
> Notice:  This email is confidential and may contain copyright material of Ocado Limited (the "Company"). Opinions and views expressed in this message may not necessarily reflect the opinions and views of the Company.
> If you are not the intended recipient, please notify us immediately and delete all copies of this message. Please note that it is your responsibility to scan this message for viruses.
>
> Company reg. no. 3875000.
> Ocado Limited
> Titan Court
> 3 Bishops Square
> Hatfield Business Park
> Hatfield
> Herts
> AL10 9NE
>
>
> *********************************************************************
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml....
> For additional commands, e-mail: fop-user-help@xml....



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml....
For additional commands, e-mail: fop-user-help@xml....

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.