Ok, so in my continuing effort to learn Struts by writing a file manager app, things are going very well. But, now I find myself at another stumbling block...

Is there any easy way to implement a file download in Struts WHEN THE TARGET FILE COULD BE ANYWHERE IN THE FILE SYSTEM? It doesn't seem that a direct or forward will work because they both seem to rely on paths relative to the servlet container. I need to be able to specify an absolute path and filename to forward to (I wouldn't expect a redirect to work under any circumstances, I thnik it has to be a forward).

I'm thinking of using streams to stream the file through the response object, but before I go through all that effort I thought I'd ask if anyone has solved this problem already in a less work-intensive manner?

Thanks in advance!

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfeeŽ Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



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



Reply via email to