ok, the point is: is it a embedded stuff or a standalong product? Can I use it inside my java code? say if I have a collection of data, I'd like to generate a report, what should I do in my code, if I use the openoffice you mentioned?
lee3star
Cool. would you tell me the url, so that I can try that? I don't like fop very much, just haven't found a better way.
Sorry, I don't know much about openOffice, maybe it's a good thing I should have a look. But here, FO, I'm talking about can be used in my Java code to generate dynamic pdf output. I'm not sure if openOffice can make that or not.
FO is a web standard to generate pdf file from xml document. For detail information, pls click on the link provided, which is a good place to learn FO, surely better then FOP(an open source project in apache to generate pdf using java) document. below is a snippet from the link: XSL-FO Documents XSL-FO documents are XML files with outp
You can get at some/pkg/resource.properties programmatically from your Java code in several ways. First, try: ClassLoader.getResourceAsStream ("some/pkg/resource.properties"); Class.getResourceAsStream ("/some/pkg/resource.properties"); ResourceBundle.getBundle ("some.pkg.resource"); Additionally, if the code is in a class within a some
when using BMP to implement persistence, we have to implemente a few ejb funtions: ejbCreate(), ejbStore(), ejbLoad(), ejbRemove and etc. When a ejb bean is loaded, no matter it's changed or not, when it's not needed, ejbStore() method will be executed to store the ejb object to database. what a waste! Cause it's BMP, you have to control everyth
It's a shortcoming of using Exception. we can only return one exception with one error message. However, sometimes, we need more. For instance, when we are doing a validtion of a form, we may return a list of errors like: name should be entered; password doesn't match and etc. It's better return a list, rather than return one each time.
import java.util.Properties; class props { static public void main(String args[]){ Properties props; props = System.getProperties(); props.list(System.out); } }
1. why using exception Normally, we have two choices when returning values from a method: 1) return true or false 2) return void According to my experience, using true or false is only the option when the method is very simple, like compare two objects or somthing like that. When this method is complicate enough, when the method may fail for
What's covered Configuring the browser to open PDF files within the browser window Configuring the browser to open PDF files in an Acrobat window Downloading a PDF file to your hard drive You can configure your Web browser to open PDF files either in the browser window or in a separate Adobe Acrobat window. To configure the browse
Sometimes you will need to get an attribute from request or session. it's easy to use: core:out value='${requestScope.attributeName}" But, if the attribute's name is something like "aaa.bbb.ccc", you will have trouble. coz the JSTL will think you are trying to get a value ccc from object bbb from object ccc. To dear with "." in such s
It's my first weBlog, actually don't know what to write Just welcome everybody comes to my blog. My blog will be mostly about Java and J2EE stuff, which is my career. And I'm quite like those smart patterns, to make a project easier and maintainable. My career goal is to become an architect. I know there's a long way to go, but definetely not unreac