This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes GWT and the fly likes GWT and tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "GWT and tomcat" Watch "GWT and tomcat" New topic
Author

GWT and tomcat

etti eitan
Greenhorn

Joined: Sep 24, 2011
Posts: 8
Hi,

I want that my application will save files in the server side and that after that I will be able to access these files.

I am sending to the server using rpc the directory where to save files which is GWT.getModuleName() + "/Diffs".

The file created under <workspace>/<project name>/<war>/<project name>/Diffs

After that in the client I use :
Window.open(GWT.getModuleName() + "/Diffs/"+ button.getTitle(), "_blank","status=1,width=350,height=150");

To open the files.

In development mode it works OK but when I run it in production mode using tomcat the file saved under :
C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\<project name>\Diffs

Is that the right way to write it ?
How can I save the files under the webapp directory ?

Thanks

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: GWT and tomcat