users@jax-ws.java.net

how do I load external data with relative path?

From: Boris Granveaud <boris_at_granveaud.com>
Date: Fri, 17 Feb 2006 11:33:56 +0100

Hello,

I’m a newbie in the WS world, so this may be a dumb question. I’m trying
to convert a JSP page which returns data to a web service, but I’m stuck
by this:

File f = new File(application.getRealPath("data"),
request.getParameter("file"));

How can I do something similar?

I wouldn’t like to put an absolute path somewhere in a config file, so
is there a way to retrieve the path to the web app the WS is deployed on?

Thank you for your help,
B.