On Tue, 17 Jun 2003, Greg Dunn wrote:

> Date: Tue, 17 Jun 2003 16:30:28 -0500
> From: Greg Dunn <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>      [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: [OT] Container temp directory
>
> Sorry for the OT post, I've been looking for an answer to this for some
> time.
>
> If you put files (images, specifically) into the temporary directory created
> by the container (javax.servlet.context.tempdir) can they be requested from
> there?  I've tried many relative paths with no success.
>

No, they are not directly requestable from the temporary directory.
However, it wouldn't be all that difficult to create a simple servlet that
took (say) the name of the temporary file as a query parameter, and just
copied the bytes or characters back to the client.

>
> Greg

Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to