Position on page

2001-10-09 Thread Marc Jenzer

Hello

If I print something like this


I need to know on which position fop will this text print. For example 150
mm from the top of the page. I need this information to evaluate if I should
force a line break?

How do you solve this problem?


Marc


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Servlet called twice

2001-10-09 Thread Smith, Paul R

I have _exactly_ the same problem. Nothing I have tried has worked.

Please help

- Paul Smith

-Original Message-
From: Kuehnberger [mailto:[EMAIL PROTECTED]]
Sent: 09 October 2001 09:52
To: [EMAIL PROTECTED]
Subject: Servlet called twice


Hi,

My servlet can produce html or pdf, depending on a parameter which is
passed.
I read the discussion about that problem, but whatever I tried my
servlet is still called twice when the output is pdf,
if the out output is html the servlet is invoked just once.

If someone can please help me with that

Jens





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Jar Files

2001-10-09 Thread Langdon, Jeffrey

Matt:
 
I have spent the last three years learning XML/XSL/XPath and the like.
Since I work almost exclusively with Microsoft technologies - I crossed
over to the dark side :) - I have never had the need to learn Java.   It
seems all the formatters for FO are written in Java, so I can't jump
into the fray with FO as I have with other XML languages. I appreciate
your help, but I am still a little lost.  I understand the command line
prompt calling FOP, but I may have to wait for another windows program
that will help with the testing and debugging process.
 
Thanks again,
 
Jeff Langdon 
 
-Original Message-
From: Savino, Matt C [ mailto:[EMAIL PROTECTED]] 
Sent: Monday, October 08, 2001 6:27 PM
To: Langdon, Jeffrey
Subject: RE: Jar Files
 
Jeffrey, you may find using FOP a little rough going with no experience
in Java. I guess you could get by just using it as a stand-alone app.
Here is a batch file I use to set the classpath, compile a FOP embedded
program, and run that program. I prefer setting the classpath explicitly
like this rather than relying on a pre-set system classpath. The system
classpath can get out of hand pretty quick, and this way makes sure
nothing unwanted sneaks in. You may have been looking at some old docs,
because I don't think you need w3c anymore.
 
<<<>>>
set LIBDIR=D:\Downloads\Fop\092601-cvs\xml-fop\lib
 
set
classpath=.;%LIBDIR%\..\build\fop.jar;%LIBDIR%\batik.jar;%LIBDIR%\xalan-
2.0.
0.jar;%LIBDIR%\xerces-1.2.3.jar;%LIBDIR%\avalon-framework-4.0.jar;%LIBDI
R%\l
ogkit-1.0b4.jar;%LIBDIR%\jimi-1.0.jar;C:\bea\wlserver6.1\lib\weblogic.ja
r;%J
AVA_HOME%\lib\tools.jar
 
javac -verbose FOtoPDF.java
 
java FOtoPDF
<<<>>>
 
Note: you'll also need (your Java Home)/bin in your PATH environment
variable.
 
Good luck,
Matt
 
> -Original Message-
> From: Langdon, Jeffrey [ mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 08, 2001 12:41 PM
> To: [EMAIL PROTECTED]
> Subject: Jar Files
> 
> 
> Hello:
>  
> I just downloaded Fop-0.20.2.  I have read that I need to set
> the class
> path for the following: fop.jar, xerces.jar and w3c.jar.  I found
> fop.jar in the "build" folder, and a .jar called xerces-1.2.3 in the
> "lib" folder, but I can't find the w3c.jar.  I have no experience with
> Java, so I am a little confused about how to set up FOP and the class
> path.  After scanning through two XML/XSL books and the FOP web site -
> http://xml.apache.org/ - I am no closer to a solution.
>  
> Could someone point me in the right direction?
>  
> TIA,
>  
> Jeff Langdon
>  
> 
> 
> **
> This email and any files transmitted with it are confidential and 
> intended solely for the use of the individual or entity to whom they 
> are addressed. If you have received this email in error please notify 
> the system manager.
> 
> This footnote also confirms that this email message has been swept by 
> MIMEsweeper for the presence of computer viruses.
> 
> www.mimesweeper.com
> **
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 
 
 


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Servlet called twice

2001-10-09 Thread Bertrand Delacretaz

On Tuesday 09 October 2001 10:52, Kuehnberger wrote:
> my servlet is still called twice when the output is pdf,

Are you using Internet Explorer as a client?
If yes, this is a known problem: IE often does additional requests for 
non-HTML files. AFAIK this is hard, if not impossible, to solve on the server 
side.

-- 
 -- Bertrand Delacrétaz, www.codeconsult.ch
 -- web technologies consultant - OO, Java, XML, C++






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Servlet called twice

2001-10-09 Thread Ajad, Aravind

Use HTTP POST instead of GET.  That seems to be working.

Aravind

-Original Message-
From: Bertrand Delacretaz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 09, 2001 7:02 AM
To: [EMAIL PROTECTED]
Subject: Re: Servlet called twice


On Tuesday 09 October 2001 10:52, Kuehnberger wrote:
> my servlet is still called twice when the output is pdf,

Are you using Internet Explorer as a client?
If yes, this is a known problem: IE often does additional requests for 
non-HTML files. AFAIK this is hard, if not impossible, to solve on the
server 
side.

-- 
 -- Bertrand Delacrétaz, www.codeconsult.ch
 -- web technologies consultant - OO, Java, XML, C++






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Servlet called twice

2001-10-09 Thread Eric Dalquist

The problem with the servlet being called twice is a problem with Internet
Explorer and the way it handles foriegn MIME types. in IE 5.5 and below the
document is requested and one IE sees that it is a MIME type it does not
handle it then loads Acrobat and re-requests the document. There is no real
work around for this problem other than using IE 6 or better, Netscape or
Opera.

-Eric Dalquist


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




[GUMP] Build Failure - Fop

2001-10-09 Thread Sam Ruby


This email is autogenerated from the output from:



Buildfile: build.xml

init-avail:

init-filters-xalan1:

init-filters-xalan2:
 [copy] Copying 1 file to /home/rubys/jakarta/xml-fop/build/src/codegen

init:
 [echo] --- Fop 0.20.1 [1999-2001] 

prepare:
 [echo] Preparing the build directories
[mkdir] Created dir: 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/fo/properties
[mkdir] Created dir: 
/home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/src/org/apache/fop/svg
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/classes/conf
[mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/classes/hyph
 [copy] Copying 3 files to /home/rubys/jakarta/xml-fop/build/classes/conf

codegen:
 [echo] Resetting codegen directory
 [copy] Copying 35 files to /home/rubys/jakarta/xml-fop/build/src/codegen
 [echo] Generating the java files from xml resources
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/allprops.xml
 [xslt] style: ./build/src/codegen/genconst.xsl
 [xslt] out: ./build/src/org/apache/fop/fo/properties/Constants.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/foproperties.xml
 [xslt] style: ./build/src/codegen/properties.xsl
 [xslt] out: ./build/src/org/apache/fop/fo/properties/fo_ignore_this.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/foproperties.xml
 [xslt] style: ./build/src/codegen/propmap.xsl
 [xslt] out: ./build/src/org/apache/fop/fo/properties/FOPropertyMapping.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/foproperties.xml
 [xslt] style: ./build/src/codegen/enumgen.xsl
 [xslt] out: ./build/src/org/apache/fop/fo/properties/foenums_ignore_this.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/extproperties.xml
 [xslt] style: ./build/src/codegen/properties.xsl
 [xslt] out: ./build/src/org/apache/fop/fo/properties/ext_ignore_this.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/extproperties.xml
 [xslt] style: ./build/src/codegen/propmap.xsl
 [xslt] out: ./build/src/org/apache/fop/fo/properties/ExtensionPropertyMapping.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/extproperties.xml
 [xslt] style: ./build/src/codegen/enumgen.xsl
 [xslt] out: ./build/src/org/apache/fop/fo/properties/extenums_ignore_this.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/charlist.xml
 [xslt] style: ./build/src/codegen/code-point-mapping.xsl
 [xslt] out: ./build/src/org/apache/fop/render/pdf/CodePointMapping.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/Courier.xml
 [xslt] style: ./build/src/codegen/font-file.xsl
 [xslt] out: ./build/src/org/apache/fop/render/pdf/fonts/Courier.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/Courier-Oblique.xml
 [xslt] style: ./build/src/codegen/font-file.xsl
 [xslt] out: ./build/src/org/apache/fop/render/pdf/fonts/CourierOblique.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/Courier-Bold.xml
 [xslt] style: ./build/src/codegen/font-file.xsl
 [xslt] out: ./build/src/org/apache/fop/render/pdf/fonts/CourierBold.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/Courier-BoldOblique.xml
 [xslt] style: ./build/src/codegen/font-file.xsl
 [xslt] out: ./build/src/org/apache/fop/render/pdf/fonts/CourierBoldOblique.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/Helvetica.xml
 [xslt] style: ./build/src/codegen/font-file.xsl
 [xslt] out: ./build/src/org/apache/fop/render/pdf/fonts/Helvetica.java
 [xslt] 
 [xslt] 
 [xslt] xslt 
 [xslt] in: ./build/src/codegen/Hel

pdf viewer

2001-10-09 Thread Paul Kowlessar

Hi,

I want to pass the pdf file created by fop to a java pdf viewer within
an application.  Can anyone recommend a viewer that can be embedded in a
java app.

Cheers...Paul



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: 20mm space between inline tag

2001-10-09 Thread Alan McDade

Try start-indent="20mm"

Alan

-Original Message-
From: Marc Jenzer [mailto:[EMAIL PROTECTED]]
Sent: 09 October 2001 12:25
To: [EMAIL PROTECTED]
Subject: 20mm space between inline tag


Hello

How can I insert 20mm spaces between two inline tags? This don't work:

1) 

  
  


--> WARNING: property 'space-start' ignored


2)

  
  


--> no warning

Any suggestion?

Thx

Marc

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




20mm space between inline tag

2001-10-09 Thread Marc Jenzer

Hello

How can I insert 20mm spaces between two inline tags? This don't work:

1) 

  
  


--> WARNING: property 'space-start' ignored


2)

  
  


--> no warning

Any suggestion?

Thx

Marc

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Servlet called twice

2001-10-09 Thread Kuehnberger

To be more specific my servlet does like decribed below.
The generation of the html or org.w3c.document is done in two different
classes.
The class that generates the html is called just once, but the one that
creates the org.w3c.document twice.
The servlet is invoked like:
http://localhost/servlet/report.pdf?type=1&firstDate=1.1.2000&lastDate=31.1.2000&html=0&Submit=submit

  /**
   *  Process the HTTP Get request
   */
  public void doGet( HttpServletRequest request, HttpServletResponse
response ) throws ServletException, IOException {

read some parameters,


  if (to html) {

get htmlstr (the html to send)

response.setContentLength( htmlstr.length());
response.getOutputStream().print( htmlstr );
response.getOutputStream().flush();

  }
  else {

 get doc (Document to transform in pdf and send)

 renderFO( doc, response, request );
  }

  }


  /**
   *  renders an FO inputsource into a PDF file which is rendered
directly to
   *  the response object's OutputStream
   */
  public void renderFO( Document doc, HttpServletResponse response,
HttpServletRequest request ) throws Exception {

// Create the PDF.

ByteArrayOutputStream out = new ByteArrayOutputStream();

MessageHandler.setOutputMethod( MessageHandler.NONE );

Driver driver = new Driver();
driver.setRenderer( Driver.RENDER_PDF );

driver.addElementMapping( "org.apache.fop.fo.StandardElementMapping"
);
driver.addElementMapping( "org.apache.fop.svg.SVGElementMapping" );

try {
  driver.setOutputStream( out );
  driver.render( doc );
}
catch ( Exception ex ) {
  cat.error(ex);
}
finally {
  try {
out.close();
  }
  catch ( IOException e ) {
  }
}

byte[] content = out.toByteArray();
response.setContentLength( content.length );
response.setContentType( "application/pdf" );
response.addHeader( "Content-Disposition", "inline;
filename=report.pdf" );
response.getOutputStream().write( content );
response.getOutputStream().flush();
  }


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Servlet called twice

2001-10-09 Thread Alex McLintock

 --- Kuehnberger <[EMAIL PROTECTED]> wrote: > Hi,
> 
> My servlet can produce html or pdf, depending on a parameter which is
> passed.

ok.

> I read the discussion about that problem, but whatever I tried my
> servlet is still called twice when the output is pdf,
> if the out output is html the servlet is invoked just once.


hmmm. So what exactly have you tried? You really ought to be more explicit 
in asking for help. It is only polite.

 
> If someone can please help me with that

Well, lets see.

Step one: bring down Microsoft and stop your users from using Microsoft products.

Oh, that might be a bit outside your remit.

Step Two: 

Have you checked to see whether the first request is a HEAD request? if so then 
you probably don't need to respond with the full PDF that time.

If you still have the problem then the only solution I can suggest is that your
servlet *saves* the pdf to disk and returns the browser some html which corresponds
to a frameset. The frameset should have two frames, one zero height, the other full 
height.
The full height frame should point to the saved pdf.

Hopefully this will help.



=
Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in London
OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ 
SF and Computing Book News and Reviews: http://news.diversebooks.com/
Get Your XML T-Shirt  at http://www.inversity.co.uk/


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: ETA on 0.20.2

2001-10-09 Thread Louis . Masters


Arved:
First of all, I apologize for my "end-user"-like demands.  I think I pissed
off Steve in the process.  My apologies all around.  Sometimes work demands
make me miss the forest for the trees.
Second of all, thanks for even taking a look at it.  It helps tremendously
to have such a dedicated group of "volunteers".  Let me know if you need
help going through the changes file or any other admin you wish to offload
and I'll give it a shot.
Anyway, enough gushing.  I'm still converting from 0.18 to 0.20.2 so I have
got my hands full.
Let me know if you need any help.
-Lou





Arved Sandstrom <[EMAIL PROTECTED]> on 10/08/2001 12:26:11 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  Re: ETA on 0.20.2

Hi, Lou

It's probably easiest for me to fix up marker support, since I threw the
existing code in there in the first place. It even worked, after a fashion,

for a number of scenarios (although it didn't inherit properties from its
virtual parent in the static-content, but rather from its lexical parent).
So
there is a lot already there.

I apologise for not working on it. I have been hung up terribly on working
on
the CHANGES file in the latest distro- I am going to abandon that until we
come up with a better system. So I should be able to work on markers,
because
in fact I have had enough time recently, I've just been pissing it away on
one $@!&* administrative file.

Regards,
Arved Sandstrom

On Monday 08 October 2001 17:39, you wrote:
> Thanks.  However, due to firewall issues, I can't get to your FAQ.  I'm
> going to pull the source code and start looking through it.
> -Lou
>
> Alex McLintock <[EMAIL PROTECTED]> on 10/08/2001 12:38:26 PM
>
> Please respond to [EMAIL PROTECTED]
>
> To:   [EMAIL PROTECTED]
> cc:
>
> Subject:  RE: ETA on 0.20.2
>
>  --- COFFMAN Steven <[EMAIL PROTECTED]> wrote:
> > No set date has been committed to. If you really need marker support,
>
> we'd
>
> > be happy to get any patches you'd care to send. We are, after all,
> > developing on a completely volunteer basis.
> > -Steve
>
> There was however at least one company willing to write patches on
> a commercial basis. (Not mine - I'm too busy and don't know the source
well
> enough).
>
> Contact details in the FAQ.
>
> http://www.OWAL.co.uk:8090/asf/fop.jsp
>
> Alex
>
>
> =
> Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in
London
> OpenWeb Analysts Ltd, http://www.OWAL.co.uk/
> SF and Computing Book News and Reviews: http://news.diversebooks.com/
> Get Your XML T-Shirt  at http://www.inversity.co.uk/
>
> 
> Do You Yahoo!?
> Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
> or your free @yahoo.ie address at http://mail.yahoo.ie
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>
>
>
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

--
Fairly Senior Software Type
e-plicity (http://www.e-plicity.com)
Halifax, Nova Scotia
Wireless * B2B * J2EE * XML

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]









-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Servlet called twice

2001-10-09 Thread Kuehnberger

Hi,

My servlet can produce html or pdf, depending on a parameter which is
passed.
I read the discussion about that problem, but whatever I tried my
servlet is still called twice when the output is pdf,
if the out output is html the servlet is invoked just once.

If someone can please help me with that

Jens





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




page-position="last"

2001-10-09 Thread Alessandro Marcellini

Hi all,
I'm using fop in a web application to render a invoice that can be of
many pages,
so i need to write the totals in the footer of the LAST page only: this
i can do
with this fo tags:






I tried with fop 0.17.0 and 0.20.1 and doesn't work.
Someone knows if this property of  fo:conditional-page-master-reference
will be implemented in the nearest future (is there in CVS library?)?
Thank's
Alessandro



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Jar Files

2001-10-09 Thread Darren Munt

Jeff,

I'm in the same boat as you. However, I have worked out a way of using FOP
that doesn't require the use of batch files, environment variables and all
that other messy stuff that Windows developers left behind ages ago. What I
do is build a command line to java.exe that specifes everything that FOP
needs to know. It looks like this:

d:\jdk\bin\java.exe -cp
d:\jdk\lib\tools.jar;d:\jdk\lib\classes.zip;d:\fopv20\fop.jar;d:\fopv20\lib\
batik.jar;d:\fopv20\lib\xalan-2.0.0.jar;d:\fopv20\lib\xerces-1.2.3.jar;d:\fo
pv20\lib\jimi-1.0.jar -jar d:\fopv20\fop.jar -fo
d:\dev\common\fop\racebook.fo -pdf d:\dev\common\fop\racebook.pdf

I build this dynamically in a COM component by passing in the name of the
input (d:\dev\common\fop\racebook.fo) and output
(d:\dev\common\fop\racebook.pdf) files, which are the only things that
change. I keep the paths to the Java exe and the FOP libaries in the
registry (arguably no better than an environment variable...) so that I can
maintain the same code on different machines. The -cp switch eliminates the
need for a classpath environment variable.

All of this I throw at a CreateProcessA WIN32 API call, using
CREATE_NO_WINDOW to prevent a window popping up on my server.

The downside to this approach is that a new Java.exe is spawned every time I
want to do a conversion from FO to PDF. Some people draw in breath sharply
at this, but I find that the overhead of this is negligible compared to the
time it takes to render a PDF. The upside is that it allows you do render
your PDF asynchronously, so you don't have to hang around for FOP to do it's
stuff.

If you, or anyone else, would like to see the code I use to do this, I'm
happy to share. But keep in mind that it's all VB, which may scare some
people away.

Cheers.

-Original Message-
From: Langdon, Jeffrey [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 9 October 2001 12:59 
To: [EMAIL PROTECTED]
Subject: Jar Files


Matt:
 
I have spent the last three years learning XML/XSL/XPath and the like.
Since I work almost exclusively with Microsoft technologies - I crossed
over to the dark side :) - I have never had the need to learn Java.   It
seems all the formatters for FO are written in Java, so I can't jump
into the fray with FO as I have with other XML languages. I appreciate
your help, but I am still a little lost.  I understand the command line
prompt calling FOP, but I may have to wait for another windows program
that will help with the testing and debugging process.
 
Thanks again,
 
Jeff Langdon 
 
-Original Message-
From: Savino, Matt C [ mailto:[EMAIL PROTECTED]] 
Sent: Monday, October 08, 2001 6:27 PM
To: Langdon, Jeffrey
Subject: RE: Jar Files
 
Jeffrey, you may find using FOP a little rough going with no experience
in Java. I guess you could get by just using it as a stand-alone app.
Here is a batch file I use to set the classpath, compile a FOP embedded
program, and run that program. I prefer setting the classpath explicitly
like this rather than relying on a pre-set system classpath. The system
classpath can get out of hand pretty quick, and this way makes sure
nothing unwanted sneaks in. You may have been looking at some old docs,
because I don't think you need w3c anymore.
 
<<<>>>
set LIBDIR=D:\Downloads\Fop\092601-cvs\xml-fop\lib
 
set
classpath=.;%LIBDIR%\..\build\fop.jar;%LIBDIR%\batik.jar;%LIBDIR%\xalan-
2.0.
0.jar;%LIBDIR%\xerces-1.2.3.jar;%LIBDIR%\avalon-framework-4.0.jar;%LIBDI
R%\l
ogkit-1.0b4.jar;%LIBDIR%\jimi-1.0.jar;C:\bea\wlserver6.1\lib\weblogic.ja
r;%J
AVA_HOME%\lib\tools.jar
 
javac -verbose FOtoPDF.java
 
java FOtoPDF
<<<>>>
 
Note: you'll also need (your Java Home)/bin in your PATH environment
variable.
 
Good luck,
Matt
 
> -Original Message-
> From: Langdon, Jeffrey [ mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 08, 2001 12:41 PM
> To: [EMAIL PROTECTED]
> Subject: Jar Files
> 
> 
> Hello:
>  
> I just downloaded Fop-0.20.2.  I have read that I need to set
> the class
> path for the following: fop.jar, xerces.jar and w3c.jar.  I found
> fop.jar in the "build" folder, and a .jar called xerces-1.2.3 in the
> "lib" folder, but I can't find the w3c.jar.  I have no experience with
> Java, so I am a little confused about how to set up FOP and the class
> path.  After scanning through two XML/XSL books and the FOP web site -
> http://xml.apache.org/ - I am no closer to a solution.
>  
> Could someone point me in the right direction?
>  
> TIA,
>  
> Jeff Langdon
>  
> 
> 
> **
> This email and any files transmitted with it are confidential and 
> intended solely for the use of the individual or entity to whom they 
> are addressed. If you have received this email in error please notify 
> the system manager.
> 
> This footnote also confirms that this email message has been swept by 
> MIMEsweeper for the presence of computer viruses.
> 
> www.mimesweeper.com
> *

Re: Jar Files

2001-10-09 Thread Keiron Liddle

Firstly where ever you read that it needs w3c.jar is wrong (or out of
date).

the jars you need are (for the current version)
fop.jar
batik.jar
logkit-1.0b4.jar
avalon-framework-4.0.jar
xerces-1.2.3.jar

also xalan if you are using xml+xsl

these should be in the lib dir (and build dir for fop.jar)

On Mon, 08 Oct 2001 21:40:43 "Langdon, Jeffrey" wrote:
> Hello:
>  
> I just downloaded Fop-0.20.2.  I have read that I need to set the class
> path for the following: fop.jar, xerces.jar and w3c.jar.  I found
> fop.jar in the "build" folder, and a .jar called xerces-1.2.3 in the
> "lib" folder, but I can't find the w3c.jar.  I have no experience with
> Java, so I am a little confused about how to set up FOP and the class
> path.  After scanning through two XML/XSL books and the FOP web site -
> http://xml.apache.org/ - I am no closer to a solution.
>  
> Could someone point me in the right direction?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Jar Files

2001-10-09 Thread Michiel Verhoef

If all else fails: you could try to use the XSLT debugger from VBXML.com to
make sure
your XSLT proces is correct (i.e. you actually produce the FO
needed/wanted). Next, 
simply call FOP and check the PDF.

You don't need to learn Java to use FOP (actually, I hardly know any java at
all). What 
you do need to learn (with any programming language, be it Java or Perl ;-)
is programming. 
How do I debug stuff? etc.

It pays of to learn how to program (even just a little) so you do not have
to rely on GUI interfaces
because most new technologies start with char based systems.

Just my $0.02,

Michiel

 
$ -Original Message-
$ From: Langdon, Jeffrey [mailto:[EMAIL PROTECTED]]
$ Sent: dinsdag 9 oktober 2001 4:59
$ To: [EMAIL PROTECTED]
$ Subject: Jar Files
$ 
$ 
$ Matt:
$  
$ I have spent the last three years learning XML/XSL/XPath and the like.
$ Since I work almost exclusively with Microsoft technologies - 
$ I crossed
$ over to the dark side :) - I have never had the need to learn 
$ Java.   It
$ seems all the formatters for FO are written in Java, so I can't jump
$ into the fray with FO as I have with other XML languages. I appreciate
$ your help, but I am still a little lost.  I understand the 
$ command line
$ prompt calling FOP, but I may have to wait for another windows program
$ that will help with the testing and debugging process.
$  
$ Thanks again,
$  
$ Jeff Langdon 
$  
$ -Original Message-
$ From: Savino, Matt C [ mailto:[EMAIL PROTECTED]] 
$ Sent: Monday, October 08, 2001 6:27 PM
$ To: Langdon, Jeffrey
$ Subject: RE: Jar Files
$  
$ Jeffrey, you may find using FOP a little rough going with no 
$ experience
$ in Java. I guess you could get by just using it as a stand-alone app.
$ Here is a batch file I use to set the classpath, compile a 
$ FOP embedded
$ program, and run that program. I prefer setting the classpath 
$ explicitly
$ like this rather than relying on a pre-set system classpath. 
$ The system
$ classpath can get out of hand pretty quick, and this way makes sure
$ nothing unwanted sneaks in. You may have been looking at some 
$ old docs,
$ because I don't think you need w3c anymore.
$  
$ <<<>>>
$ set LIBDIR=D:\Downloads\Fop\092601-cvs\xml-fop\lib
$  
$ set
$ classpath=.;%LIBDIR%\..\build\fop.jar;%LIBDIR%\batik.jar;%LIBD
IR%\xalan-
$ 2.0.
$ 0.jar;%LIBDIR%\xerces-1.2.3.jar;%LIBDIR%\avalon-framework-4.0.
jar;%LIBDI
$ R%\l
$ ogkit-1.0b4.jar;%LIBDIR%\jimi-1.0.jar;C:\bea\wlserver6.1\lib\w
eblogic.ja
$ r;%J
$ AVA_HOME%\lib\tools.jar
$  
$ javac -verbose FOtoPDF.java
$  
$ java FOtoPDF
$ <<<>>>
$  
$ Note: you'll also need (your Java Home)/bin in your PATH environment
$ variable.
$  
$ Good luck,
$ Matt
$  
$ > -Original Message-
$ > From: Langdon, Jeffrey [ mailto:[EMAIL PROTECTED]]
$ > Sent: Monday, October 08, 2001 12:41 PM
$ > To: [EMAIL PROTECTED]
$ > Subject: Jar Files
$ > 
$ > 
$ > Hello:
$ >  
$ > I just downloaded Fop-0.20.2.  I have read that I need to set
$ > the class
$ > path for the following: fop.jar, xerces.jar and w3c.jar.  I found
$ > fop.jar in the "build" folder, and a .jar called xerces-1.2.3 in the
$ > "lib" folder, but I can't find the w3c.jar.  I have no 
$ experience with
$ > Java, so I am a little confused about how to set up FOP and 
$ the class
$ > path.  After scanning through two XML/XSL books and the FOP 
$ web site -
$ > http://xml.apache.org/ - I am no closer to a solution.
$ >  
$ > Could someone point me in the right direction?
$ >  
$ > TIA,
$ >  
$ > Jeff Langdon
$ >  
$ > 
$ > 
$ > 
$ **
$ > This email and any files transmitted with it are confidential and 
$ > intended solely for the use of the individual or entity to 
$ whom they 
$ > are addressed. If you have received this email in error 
$ please notify 
$ > the system manager.
$ > 
$ > This footnote also confirms that this email message has 
$ been swept by 
$ > MIMEsweeper for the presence of computer viruses.
$ > 
$ > www.mimesweeper.com
$ > 
$ **
$ > 
$ > 
$ -
$ > To unsubscribe, e-mail: [EMAIL PROTECTED]
$ > For additional commands, email: [EMAIL PROTECTED]
$ > 
$ > 
$  
$  
$ 
$ 
$ **
$ This email and any files transmitted with it are confidential and
$ intended solely for the use of the individual or entity to whom they
$ are addressed. If you have received this email in error please notify
$ the system manager.
$ 
$ This footnote also confirms that this email message has been swept by
$ MIMEsweeper for the presence of computer viruses.
$ 
$ www.mimesweeper.com
$ **
$ 
$ -
$ To unsubscribe, e-mail: [EMAIL PROTECTED]
$ For additional commands, email: [EMAIL PROTECTED]

AW: Servlet called twice

2001-10-09 Thread Beer, Christian

Try using Netscape instead of IE! :-)

-Ursprüngliche Nachricht-
Von: Smith, Paul R [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 9. Oktober 2001 12:40
An: '[EMAIL PROTECTED]'
Betreff: RE: Servlet called twice


I have _exactly_ the same problem. Nothing I have tried has worked.

Please help

- Paul Smith

-Original Message-
From: Kuehnberger [mailto:[EMAIL PROTECTED]]
Sent: 09 October 2001 09:52
To: [EMAIL PROTECTED]
Subject: Servlet called twice


Hi,

My servlet can produce html or pdf, depending on a parameter which is
passed.
I read the discussion about that problem, but whatever I tried my
servlet is still called twice when the output is pdf,
if the out output is html the servlet is invoked just once.

If someone can please help me with that

Jens





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Servlet called twice

2001-10-09 Thread Savino, Matt C

Could you attach your servlet and html source? I have a link mapped to a
servlet and it doesn't get called twice by either browser. (Although I
haven't tested with IE 4.0 yet). 

Unless you're talking about the strange behavior you get from IE when you
use:
  response.setHeader("Content-Disposition", "attachment;
filename=ReportOutput.pdf");

Their are two advantages to this method. (1) You can set the PDF filename on
the fly (IE - include a date or some kind of user or session specific ID)
without having to have a servlet mapping involved in the filename. (2) You
avoid the PDF-browser-plugin and give people the standard Open/Save file
dialog they are used to for most downloads. 

But for some reason IE likes to present the Open/Save dialog twice. Which is
obviously too annoying/confusing to end users to be part of any final
soltuion. That's not by any chance what you're talking about when you
mention the servlet being loaded twice is it? After a few hours of hassle I
think I figured out why IE does what it does. But it's probably not worth
going into because I don't think there's a cure. Also "Content-Disposition"
is explicitly not supported in the latest HTTP spec so it's probably best
not to count on it.

Currently I'm thinking my final end-user solutuion will consist of two
parts: 

(1) Having the PDF-generator servlet accessed by a form submit which is
actually a link--using onClick='this.form.submit()'. That way savvy users
can right-click and select "Save Link(/Target) As". I can't just make it a
straight link because I need data from the form to generate the PDF. (I
haven't fully tested this idea yet). 

(2) A little link that explains how to disable PDF-browser-integration for
users like me who find it annoying.

Hope someone finds this useful!

-Matt

 




> -Original Message-
> From: Beer, Christian [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 09, 2001 6:10 AM
> To: '[EMAIL PROTECTED]'
> Subject: AW: Servlet called twice
> 
> 
> Try using Netscape instead of IE! :-)
> 
> -Ursprüngliche Nachricht-
> Von: Smith, Paul R [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 9. Oktober 2001 12:40
> An: '[EMAIL PROTECTED]'
> Betreff: RE: Servlet called twice
> 
> 
> I have _exactly_ the same problem. Nothing I have tried has worked.
> 
> Please help
> 
> - Paul Smith
> 
> -Original Message-
> From: Kuehnberger [mailto:[EMAIL PROTECTED]]
> Sent: 09 October 2001 09:52
> To: [EMAIL PROTECTED]
> Subject: Servlet called twice
> 
> 
> Hi,
> 
> My servlet can produce html or pdf, depending on a parameter which is
> passed.
> I read the discussion about that problem, but whatever I tried my
> servlet is still called twice when the output is pdf,
> if the out output is html the servlet is invoked just once.
> 
> If someone can please help me with that
> 
> Jens
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]