Hi Jason,
Thanks a million for code example.
Unfortunately I cannot use Websphere Application Developer, because we have troubles with
Websphere 4. I have to use Visual Age 3.5. As a matter of fact I do use WSAD to check syntax of
my XMLs. I am about to import few .jars: xerces.jar, xalan.jar, fop.jar, logkit.jar. Is there anything else
I need to create and configure?
Thanks again. John Cherny.
[EMAIL PROTECTED]
04/03/02 10:36 AM
|
To: [EMAIL PROTECTED] cc: Subject: RE: help to get started on WebSphere 3.5 |
This is how I do it Websphere 4.
Using Websphere Application developer I put the jar files
into the WEB-INF/lib directory in my war file. If using VAJ
just add some entries to the WS Testenvironment classpath to
where these are.
I then used the code examples in the docs.
here is a little code snippet
( it's contextual to my program and I use the oracle xml/xslt
engines as well. )
import org.apache.fop.apps.Driver;
import org.apache.fop.apps.Version;
import org.apache.fop.apps.XSLTInputHandler;
import org.apache.log.*;
if ( sUseFOP.equals("Y") ) {
XMLDocumentFragment foDocFrag =
processor.processXSL(xsl, resultXML);
XMLDocument foDoc = new XMLDocument();
foDoc.appendChild( foDocFrag);
renderXML((Document) foDoc, response, outW);
} else {
processor.processXSL(xsl, resultXML, outW);
}
HTH, Jason
-----Original Message-----
From: J.Pietschmann [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 1:34 PM
To: [EMAIL PROTECTED]
Subject: Re: help to get started on WebSphere 3.5
[EMAIL PROTECTED] wrote:
>
> I have to generate PDF letters files. To do that I have decided to use
> FOP files as letter templates supplying
> variables(name, address...) via XML. It is going to be a batch job,
> running "main" method developing
> with Visual Age, WebSphere 3.5. Is anyone has examples?
> Most importantly, I have no idea what libraries to download, where to
> install and how to configure.
You are asking for something big. Moreover, i can't
quite figure out what your actual requirements are.
The easiest way seems to be to contact your friendly
IBM support.
Other than that it would be useful to know:
1. How much experience do you have in running WebSphere
and deploying code for WebSphere?
2. How much experience do you have in Java programming
in general and in servlet/JSP stuff in particular?
3. How extensive have you already dealt with XML stuff?
4. How much experience do you have in developing
XSLT/XSLFO?
5. How much experience do you have in running FOP?
6. What do you mean by "batch job"? Conventionally
this is not used in assiciation with a web application
server.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]