Re: help to get started on WebSphere 3.5
Thanks for advice. I've looked at number of messages regarding running FOP in "MAIN" but I couldn't find any reasoning why. In any case I took your warning, talked to my lead, and we are thinking of calling EJB to run FOP there. What do think? "J.Pietschmann" <[EMAIL PROTECTED]> 04/03/02 10:34 AM Please respond to fop-dev To: [EMAIL PROTECTED] cc: 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]
Re: help to get started on WebSphere 3.5
[EMAIL PROTECTED] wrote: > I am novice with XML, XSL, FOP. I suppose you already downloaded the latest binary release of FOP. First get some experience in running FOP by running some of the examples from the distribution from the command line. Check the documentation in the distribution for how to do this. If you got around this, start developing you own FO file to gain some more experience. Question related to FO design can be asked on the XSL list (http://www.mulberrytech.com/xsl/xsl-list) or, if they are FOP specific, on the FOP-user list. After you have some working FO, design your input XML for the variable date and start to generate them using XSLT. Question related to XSLT design can be asked on the XSL list exclusively. For questions about XML design check out the FAQs, tutorials and lists listed on http://www.xml.org first. Check the documentation for how to run FOP using an XSL transformation. If you got some working XSLT code you can run it from the command line, start to embed FOP into your application. There is a file "embedding.html" delivered with FOP with some hints. Look also into the FOP servlet example in docs/examples/embedding. You don't run any MAIN method. There are also recurring issues you can find in the archives of the FOP lists http://marc.theaimsgroup.com/?l=fop-user&r=1&w=2# http://marc.theaimsgroup.com/?l=fop-dev&r=1&w=2# For deploying FOP, you need all the jar files from the lib directory as well as fop.jar itself. If you want to deploy them as part of a WebSphere application, there are some pitfalls. I think they have been written about on the list, check the archives mentioned above. HTH J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: help to get started on WebSphere 3.5
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 Please respond to fop-dev 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]
Re: help to get started on WebSphere 3.5
Hi, thank you for your response. I was asked to generate response letters offline. The letters will have a standard text with an exception of things like first name, last name, address etc. Because the letters are uniformed I have decided to have some sort of letter template and during the FOP process to plug in variables into the prearranged slots. The generated letters will be send as an attachment in form of PDF files to our clients. That is the scope. I have decided to use xsl-fo to create my letter templates and create DOM document that will consist purely of variable data that I will get from the data base. By running FOP I am planning to generate PDF files. I do have few years in developing with java/jsp. I did generate letters before using PdfLib. I am novice with XML, XSL, FOP. I about to create the following projects in our repository: Xerces(xerces.jar), Xalan(xalan.jar), FOP(fop.jar) and logkit(logkit.jar). I am not sure if I need anything else. I am going to use an embedded FOP and run it in the "MAIN" method. I would appreciate any help. John Cherny. "J.Pietschmann" <[EMAIL PROTECTED]> 04/03/02 10:34 AM Please respond to fop-dev To: [EMAIL PROTECTED] cc: 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]
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]
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]