RE: Forward to a file on hard drive

2004-09-23 Thread bmf5
<[EMAIL PROTECTED]> cc 09/22/2004 04:17 PMSubject RE:

RE: Forward to a file on hard drive

2004-09-22 Thread Durham David R Jr Contr 805 CSPTS/SCE
> clugee (sp) http://dictionary.reference.com/search?r=2&q=kludgy I'm good for something. - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Forward to a file on hard drive

2004-09-22 Thread Frank W. Zammetti (MLists)
>> >> >> >> The redirect worked. Of course, this was just a test which I did with a >> logic tag. >> >> Praveen >> >> >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, September 22,

RE: Forward to a file on hard drive

2004-09-22 Thread bmf5
raveen > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 22, 2004 1:50 PM > To: Struts Users Mailing List > Subject: Re: Forward to a file on hard drive > > > > > > > I'm sorry to report it d

RE: Forward to a file on hard drive

2004-09-22 Thread Arumbakkam, Praveen \(Contractor\)
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 22, 2004 1:50 PM To: Struts Users Mailing List Subject: Re: Forward to a file on hard drive I'm sorry to report it doesn't work. As best I can tell It wants to find the file in the application c

Re: Forward to a file on hard drive

2004-09-22 Thread Jeff_Caswell
List" <[EMAIL PROTECTED]> cc: 09/22/2004 01:50 Subject: Re: Forward to a file on hard drive

Re: Forward to a file on hard drive

2004-09-22 Thread bmf5
I'm sorry to report it doesn't work. As best I can tell It wants to find the file in the application context. I base that on the 404 and the location being the RouterAction with parm... http://localhost:9080/AIM/router.do?destination=handHeld from a forward of forward name="handHeld" path

Re: Forward to a file on hard drive

2004-09-22 Thread Hubert Rabago
By the way, bmf5, if it IS on the user's hard drive, you don't need to hardcode the path to the file like in my example. You can create an ActionForward in your action to specify the path at runtime, and have the action return that instead. On Wed, 22 Sep 2004 14:12:00 -0400 (EDT), Frank W. Zamm

Re: Forward to a file on hard drive

2004-09-22 Thread Frank W. Zammetti (MLists)
Ok, seems like my brain is asleep earlier than usual today... I agree, if that is indeed the case, the redirect should in all probability work as Hubert says. I would expect it to until I saw otherwise anyway. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http:/

Re: Forward to a file on hard drive

2004-09-22 Thread Hubert Rabago
Hmm... and my understanding was that the file is installed on the user's machine. "and then render the html page from the local hard drive." If I misunderstood, then the code sample I posted wouldn't work. Hubert On Wed, 22 Sep 2004 14:05:43 -0400 (EDT), Frank W. Zammetti (MLists) <[EMAIL PROTE

Re: Forward to a file on hard drive

2004-09-22 Thread Frank W. Zammetti (MLists)
That presumes that the app server is on the same box as the client (which is, I think, the only way the file:// path would work). IF that's the case, then yes, Hubert's suggestion would probably work just fine. I had assumed, from the description given, that this wasn't the case. -- Frank W. Za

Re: Forward to a file on hard drive

2004-09-22 Thread Frank W. Zammetti (MLists)
Interesting... It sounds, based on your description of what your doing, that you really aren't forwading to the page, you just need to return it out of your Action. If that's the case, my suggestion of getting a stream on it (treat it like an ordinary file, attach no special meaning to the fact t

Re: Forward to a file on hard drive

2004-09-22 Thread Hubert Rabago
In that case, try something like On Wed, 22 Sep 2004 14:00:23 -0400, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > "Frank W. Zammetti (MLists)" <[EMAIL PROTECTED]> wrote on 09/22/2004 > 01:34:07 PM: > > > Are you actually trying to FORWARD to the file or is your intention to > > initiat

Re: Forward to a file on hard drive

2004-09-22 Thread bmf5
"Frank W. Zammetti (MLists)" <[EMAIL PROTECTED]> wrote on 09/22/2004 01:34:07 PM: > Are you actually trying to FORWARD to the file or is your intention to > initiate download of the file? FORWARD > > Your specifying an HTML file though, so I assume you want the user to see > that page.

Re: Forward to a file on hard drive

2004-09-22 Thread Hubert Rabago
What is it you're trying to do? Are you trying to give the client access to a document store on the server? If so, you should place the document in a location accessible to the web application, and provide that url as the forward path. How you do this and what its eventual URL is would depend on

Re: Forward to a file on hard drive

2004-09-22 Thread Frank W. Zammetti (MLists)
Are you actually trying to FORWARD to the file or is your intention to initiate download of the file? If the later, you'll need to do the usual download code, and just point it at the file. Your specifying an HTML file though, so I assume you want the user to see that page... So, the question is,

Re: Forward to a file on hard drive

2004-09-22 Thread bmf5
This doesn't work either. I get a 404 for a local resource or an outside url. I don't want to hardcode the document.location but I don't know what other choices there are. Hubert Rabago <[EMAIL PROTECTED]> wrote on 09/22/2004 12:00:00 PM: > If you need to forward to a resource outside the

Re: Forward to a file on hard drive

2004-09-22 Thread Hubert Rabago
If you need to forward to a resource outside the current web context, you can try using a redirect. http://gmail.google.com"; redirect="true"/> Now, whether it'll work when you point it to a local resource... I think what you'll get is the user's browser will try to look for that file on the use