The reports are all run on our east coast servers, hence the default JVM timezone of EST. However, the customer's data maybe from another timezone - the one they are located in. The code that gets called for the jasper csv export has as one of its invocation parameter the timezone, but we have no place to set it so dynamic jasper FastReportBuilder can make use of it.
Paul Clapham wrote:What would "respecting a timezone" mean? I'm assuming that EST is the default time zone when the application runs, so what should cause the application to choose some other time zone?
Sorry if I was not clear. The code does make use of the timezone defaulted to EST. I just want to be able to pass in and change the timezone accordingly. For example if someone from the west coast runs the report I would like the date to be formatted for PST (his local zone) instead of the default EST.
I've spent most of the day trying to google an example of how this would be done.
it is part of the the dynamic jasper package and allows creating jasper reports on-the-fly. The issue I have is that when I add a Timestamp column to my report, the time zone it uses for formatting is always EST.
Does anyone know how to accomplish this? Here is a snippet of code ...
I get this in the output: ... 12/06/2012 02:47:51 PM EST ...
Ok, so I believed in error that I needed some additional markup in order to preserve the newlines. In actuality newlines are preserved by default without any additional measures -- as you have demonstrated.
In fact something along the line in my code is destroying the whitespace.
I have a web page that connects to a datsource and lets one create a SQL query in a text area box. I click on a button and the query executes thereby returning a result set which is presented. All is fine.
Now, I would like to export this query to an XML schema defined XML export file. Once exported to an XML file, I would like to import any query file into the text area and run it or edit it. Its almost all fine except when I import the query, which can be very complex and have many lines, I lose the newlines!
So I would like to preserve the whitespace structure of the text that is being exported to and imported from an XML file.