A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Getting file path for webservice project
Joined: Jan 28, 2012
Jun 24, 2012 08:45:16
I am using Glassfish, and am attempting to write files to disk from a web application.
Unfortunately the file is written directly to the Glassfish server directory ("C:\...\.netbeans\7.0\config\GF3\domain1")
and not to my project directory (which is where I want it to be saved to).
, I got around this problem, using the following method:
filepath = getServletContext().getRealPath("/");
But for my web service, I cannot use this method, and am struggling to find one which would work.
Does anyone know of a method which might help?
Thanks very much
I agree. Here's the link:
subject: Getting file path for webservice project
Using Glassfish instead of Axis2 in Eclipse
file locations in Netbeans project and in glassfish
Referencing images in a servlet
going nuts trying to reference images on server
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014