Sarah Raf

Ranch Hand
+ Follow
since May 08, 2011
Sarah likes ...
Android Eclipse IDE Java
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 Sarah Raf

Hi All,
I need a help regarding the display of SOAP response using JSP.

I am sending a SOAP request from the client using XMLHttpRequest. This is created as a request in the Javascript. Then the request is sent to the server.

Now when the response comes back from the server , it is coming to the XMLHttpRequest object. With this the page does not refresh. So I will have to use DHTML to display the response to the screen. This would make the response handling more cumbersome.

I want the response to be shown in a different jsp page - just like when the page is submitted another page will be displayed.
Any help would be appreciated.

Regards,
Sarah
9 years ago
Solved it Thanks for all the Help

I had to give an empty line at the starting of my resource file, and class path should be included in the batch file as i mentioned ( this should be done if you want to run your JAR file through an external batch file, NOT REQUIRED IN CASE OF ECLIPSE). The problem that my database wasn't getting recognized was all because that I forgot to include a blank line at the start of the resource file.

Once again thanks for all the help
I found a way to set the classpath for the resource file. I am using a batch file to run my JAR. I have set the path like this


But now when I do any changes to the contents of the resource folder (properties file), the GUI does not recognize the database from the data folder. How do I proceed?

Regards,
Sarah
My manifest file looks like this

so to include the properties file i tried this

but this dint work out. So i tried this

when i do this I need to add the label.properties file outside the resources folder, into the current directory. The properties file is getting detected but the derby database isn't. What could be wrong?
Thanks for the reply Maneesh. I had been through this article before, but my doubt isn't cleared. I need to access my properties file through the class path. AFAIK in the class-path entry of the manifest file we can add only JAR files and classes. Is there a way to add properties file?
Hi All,
Sorry to have reopened this post , but can anyone help me out with this.
I have a properties file in the resources folder in my project. I have created a JAR file by excluding this properties file, so that any changes made to the properties file will reflect in my JAR file. Now I want to include this properties file path in the class path entry of my manifest file. How can I do this? I tried this , but when i do this, the other libraries that I include aren't being detected by the JAR file. How do I proceed.
Hi All,
I am trying to create a JAR file using eclipse. I need to avoid including the label.properties file in the JAR, how can I do that? Help me


Regards,
Sarah
Thanks Ulf...
I found the API to capture the image instance and now I got it in the PDF format... Thanks so much for the suggestions

Regards,
Sarah
10 years ago
Ok here's the problem I am facing... my image is I need to export only the chart part of my image into PDF format.
I tried to this :


But my chart is dynamic. It refreshes every time I perform some mouse action.. So I don't want to explicitly specify my chart image. How do I go about it???
10 years ago
Thanks Ulf.
Will surely try it.
10 years ago

Ulf Dittmer wrote:If Canvas refers to the AWT object, then it's probably easier to export its contents to an image, and then add the image to a PDF using a library such as iText.



Yes Ulf, its an AWT object, but it does have openGL libraries too. How could i export the contents to an image?
10 years ago

Jesper de Jong wrote:There are a number of libraries for working with PDF files in Java.

What do you mean by "canvas"; do you mean an HTML 5 canvas? If yes, then you're talking about JavaScript, which is something that does not have very much to do with Java.



Thanks Jesper.
I am using Open GL libraries and from my Java code, I am referring to the Canvas, using the getCanvas() method. So basically my question is all about Java. And yes I did check out the iText library. Thou i'm still trying to use it..

Regards,
Sarah
10 years ago
Hi,
Does Java have an API to export a canvas to PDF format? or any other 3rd party APIs can be used?

Regards,
Sarah
10 years ago

Ajeeth Kumar wrote:Sorry Sarah, I have never tried to port a DB along with a JAR.


Thanks for the help Ajeeth. By the way my JAR file creates the database, so I don't have to port it along with the application. Once again Thanks a lot for all the suggestions and the timely help

Regards,
Sarah
Thank you all for the help
At the moment I am not using Maven. But the links and suggestions did help me a lot to learn about Maven. Thanks a lot once again

Regards,
Sarah
10 years ago