How to get Java web application path?
<p>I have a fileupload servlet in java. And i want to set path to upload folder, to it waork on any server. I say:</p>

<pre><code> File disk = new File("/myportlet/upload/"+item.getName());
 item.write(disk);
</code></pre>

<p>But nothing saved. When i use absolute path to upload folder all work fine.<br>
So how to set path to upload folder in server? </p>
