Leinad Jan

Greenhorn
+ Follow
since Feb 18, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Leinad Jan

Hello all,

yesterday it was running perfectly, I had no problems, but today, each time I click on my shortcut to run BIRT, I got the following message :

JVM Terminated. Exit Code=1
C:\Program Files\Java\jre6\bin\javaw.exe
-Xms40m
-Xmx256m
-jar C:\birt-report-all-in-one-2_1_1\eclipse\startup.jar
-os win32
-ws win32
-arch x86
-launcher C:\birt-report-all-in-one-2_1_1\eclipse\eclipse.exe
-name Eclipse
-showslpash 600
-exitdata ca8_80
-vm C:\Program Files\Java\jre6\bin\javaw.exe
-vmargs
-Xms40m
-Xmx256m
-jar C:\birt-report-all-in-one-2_1_1\eclipse\startup.jar

I've seen many solution on the web but none of them worked for me. Removing the argments in eclipse.ini, deleting the .lock file in the workspace. Do you have any suggestions ? I did not updated the JRE or Eclipse since last year, so I don't understand what could be the problem.

Leinad
Hello everybody,

I don't know if many of you had ever used BIRT to create reports and extract data ? I'm searching a way to change the default CSV separator when I'm calling a report so it gives me a CSV file that use ";" instead of ",".

Let me know if you know the answer.

Thank you !
9 years ago
Hello,

I discovered there was no problem with my code. It works perfectly. The problem was with the back button. If the filename had a ' character, it was a problem in the rendering of the page which made my file dissapear in the list. To solve the problem I used an escape function on the filename.

Thank you !
9 years ago
Hi,

I got a question. I'm using javascript to create dynamic file inputs and wants to upload them to the server. Everything is working fine on my workstation. I got a struts form using the multipart/form-data. I can read all the files from the FormFile objects. And I even tried with huge archive files (over 30 Megs, and it takes some time to upload them to the server) , setting the keepAlive time for 15000 milliseconds.

I don't understand why it's not working on the other workingstations. Maybe my keepALive timer isn't long enough ?

Here is an example of the form.



9 years ago
Hi,

my code is working fine until the last executeUpdate. I'm trying to upload a file into the Oracle Database.



Here is the last error stack trace I got :



Do you have any idea on what is not working correctly ? How do I define a valid LOB Locator ?

Thank you !

Dima Chornyi wrote:Hi Leinad,

i seem to have the same problem as you did with internet explorer downloading (and displaying inline) a file named "excelservlet" while the firefox recognizes the file properly as "worksheet.xlsx". What disturbs me specifically is that the wrong file extension causes Excel to ask me if i am sure i want to open a file where the content doesn't match the extension before dispaying it. I so far tried the "response.reset();" part, but i don't understand what you mean by returning null, could you please elaborate on that?



Hi Dima,

in my case, the page was reloading itself after submitting the request for the csv file. So I had an actionForward at the end of my Action method. It was the remaining code from the old version of the application. Since the page couldn't be forwarded after writing in the response, I remove the old forward to replace it by null. Which mean the page won't be reloaded by the browser. It's like making an AJAX call, you don't want to reload the whole page, so your return null in your actionForward :



Really, I don't understand why it's working fine now and it wasn't before. And like I said, I only change 2 things. Which means it's either the response.reset() or the return null.
10 years ago
Did you try to encode and decode in Javascript ? Usualy I don't care if the database store encoded strings. What is more important is the way it appears to the client.

Look at the following code, you can use that ! Credits to webtoolkit.info

10 years ago
Do springs really use html pages as beans ? I don't know springs, so I can't really help you about that. But from what I know, using a static html page as the bean's name seems weird.

With struts, we declare beans like that :



Can't you use a name without "/" and "." ? The name is used to associate the forms with the actions. Now you gave a link as your bean's name.

Bear Bibeault wrote:

Leinad Jan wrote:If you want to send your data to a servlet, you'll need a form.


He already has a form.



Yes, he does have a form, but it has no action. If you have no action, you can't send your form away.
10 years ago
Hello,


If you want to send your data to a servlet, you'll need a form. In your form, you will declare an action. The action should be the path to your servlet.

10 years ago

Bear Bibeault wrote:It's plain HTML by the time it reaches the browser. If you understand that, then I'm not sure that I understand your question.



I'm sorry, I wasn't clear in my statement. I'll try to be clear this time. I'm not a native english speaker, so forgive me for my mistakes and errors. Maybe this thread should move to the javascript forum ? Because except that I need to place the code inside my template, it has nothing to do with JSP. Some people told me to look for info in JSP forums...

Our web application is used for creating, storing and editing informations about schools. When the user is creating or changing information, there are automatic operations done on the data. If everything is correct, the status of the school will be in valid state. But in specific case, it will be invalid.

My boss wants me to send a message to the user about the remaining invalid schools before closing the application in every way possible. And the principal worry is the browser's X button. We search a way to intercept the browser's events in Javascript.

I must be able to intercept an event like "Before Closing".

Sidd Kulk : So, you think I could intercept the events by using the mouse pointer events ? That means I should detect if the cursor is at the top right corner of the screen and if the mouse left button is down.

That sounds interesting. Could you tell me more about that ? The problems I'm seeing are : Can we know the browser's resolution ? How to calculate the space for the button ? How to handle the tabs in FireFox and Internet Explorer ? They can close the application too.

I think the best solution would be to listen the events themselves. In java, we can create events listeners. Can't we do something like that in Javascript ?

Thank you all for your help, and I'm sorry to have post that message in the wrong forum.


Editing :

I've look to some examples, and it doesn't seem to be able to detect the pointer when it is outside of the document ?



10 years ago
JSP

Bear Bibeault wrote:JSP executes on the server in order to format an HTML page to send to the browser.

Browser events must be handled with JavaScript.

Perhaps this article will be helpful in understanding JSP.



Yes, I know. That's why I specified in JavaScript at the end of my message. I saw some people suggesting to use onBeforeUpload in the body. But I don't want it to be called each time somebody does a submit.

I'll read your article, but I do understand that JSP are executed on the server to generate the HTML code sent back to the user's browser. But we don't use plain HTML pages in our web application. Even if sometime it is use as much as it was a plain HTML page. I'm not responsable for that sort of design, I'm just maintaining it and adding new features.

Thank you.
Hello everybody,

My boss asked me if it was possible to intercept a browser events such as BeforeClose and look if some objects remained in invalid state. If they are, to send a message to inform the user about the problem. Since it's an browser's event, I guess it must be implemented in my webpage which is a JSP. Is it possible to do something like that in JavaScript ?

thank you for your help !
Hi everybody,

my boss asked me if it was possible to catch the browser's events to add some functionnality. I need to catch two events. BackPage and BeforeClose (I mean, before the browser is closing).

Backpage is simple. But for the other I don't know if it's possible.

Thank you