You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Barnett, Brian W." <bb...@scholarinc.com> on 2004/08/27 00:38:26 UTC

[OT] File IO

Hello,
Can someone point me to, or show me some sample java code, that opens,
reads, writes files using the relative path of the web application?

Thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [OT] File IO

Posted by Wendy Smoak <ja...@wendysmoak.com>.
From: "Barnett, Brian W." <bb...@scholarinc.com>
> Can someone point me to, or show me some sample java code, that opens,
> reads, writes files using the relative path of the web application?

What happens if you're running out of an un-exploded war file?  There may
not *be* a relative path to the web application.

IIRC from the Servlet spec, the container is required to provide a temporary
location for files.

What is it you're trying to do?

-- 
Wendy Smoak


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org