I think that's a pretty straight-forward way to access files. There really
is no "best" solution - if it works for you reliably, and performs well,
it's a good solution :) I'd go with what you have and see what happens.
On Thu, Oct 28, 2010 at 6:45 PM, <webtier_at_javadesktop.org> wrote:
> Thank you.
>
> You answered the question how to store uploaded file in any designated
> place outside WAR.
>
> How to access that file form another WAR. I know Java Petstore 2.0 using
> Servlet retrieve that file. First Servlet gets the file name from URI, then
> write the file from the place saved to an output stream
>
> Are there any better ways to retrieve files
> [Message sent by forum member 'lihe65']
>
> http://forums.java.net/jive/thread.jspa?messageID=486466
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>
--
Lincoln Baxter, III
http://ocpsoft.com
http://scrumshark.com
"Keep it Simple"