A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Other Open Source APIs
GWT and tomcat
Joined: Sep 24, 2011
Nov 03, 2011 06:46:32
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
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 ?
I agree. Here's the link:
subject: GWT and tomcat
Unable to view uploaded files in Tomcat till server is refreshed
GWT .war file building problem (Ant Build)
Vista caching and Tomcat
Problem With Installing Tomcat 4.1 17 In The Windows 98
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015