• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

GWT and tomcat

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
You'll never get away with this you overconfident blob! The most you will ever get is this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!