users@glassfish.java.net

Re: Handling File Uploads

From: <glassfish_at_javadesktop.org>
Date: Wed, 02 Jan 2008 14:25:46 PST

Actually I see your problem.

This bites me EVERY SINGLE TIME.

Here's what you need to do.

Given:
<property name="alternatedocroot_1" value="from=/orderstore/* dir=C:/stryker_cci/orderstore"/>

The "from" is the string that represents your mapping, but the entire tree of the URL needs to be in the directory.

So, you need either this:

Put test.txt in C:\stryker_cci\orderstore\<b>orderstore</b>\test.txt

or

change the mapping:

<property name="alternatedocroot_1" value="from=/orderstore/* dir=C:/stryker_cci/"/>

But keep the file in C:\stryker_cci\orderstore\test.txt

That's the problem. It is non-obvious.
[Message sent by forum member 'whartung' (whartung)]

http://forums.java.net/jive/thread.jspa?messageID=252008