RE: Forward to a file on hard drive
Thanks for the correction. I want be so kludgy with spelling in the future. "Durham David R Jr Contr 805 CSPTS/SCE" To <[EMAIL PROTECTED] "Struts Users Mailing List" ott.af.mil> <[EMAIL PROTECTED]> cc 09/22/2004 04:17 PMSubject RE: Forward to a file on hard drive Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED] he.org> > 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Forward to a file on hard drive
> 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
Agh, beat me to the punch :) That's what I tried after the forward from the Action didn't work for me either. I understand (I think) why it didn't work as expected... RequestProcessor was trying to find the file specified in the forward on the app server, not the client-side... I (and I think Bart as well) were subconsciously making an assumption that Struts would return essentially an empty page with a redirect header in it to the client, but that's not what happens. Praveen's solution shows that to get that functionality you have to do it yourself. Good thread in any case, one of those things that is likely to help someone down the road when they find it in the archives :) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Wed, September 22, 2004 3:54 pm, [EMAIL PROTECTED] said: > > > > > Thank you for the help. This worked for me too. I used the same forward > from struts-config in the jsp as I used in the RouterAction (which didn't > work) I'll have my router action go to a jsp that redirects. Sort of > clugee (sp) but gets the job done for now. > > Thank you and thanks to all the others who helped. > > Bart > > > "Arumbakkam, Praveen \(Contractor\)" <[EMAIL PROTECTED]> wrote > on > 09/22/2004 03:12:58 PM: > >> Bmf5: >> >> Here is what I did to forward to a local file using the logic:redirect >> tag. >> >> 1. Declare a global forward in your struts-config.xml - >> >> >>> path="file:///C:/AIM/AuditorWorkQueueHandheld.html" redirect="true" /> >> >> >> 2. In a test JSP, I added: >> >> >> >> >> 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, 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 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="file:///C:/AIM/AuditorWorkQueueHandheld.html" >> redirect="true" >> >> This is the toString on the Forward in my RouterAction >> >> Forward = >> ForwardConfig[name=handHeld,path=file:///C:/AIM/AuditorWorkQueueHandheld >> ..html,redirect=true,contextRelative=false] >> >> I may have to try the stream to response suggestion or hardcode it some >> javascript. >> >> Bart >> >> "Frank W. Zammetti (MLists)" <[EMAIL PROTECTED]> wrote on 09/22/2004 >> 02:12:00 PM: >> >> > 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://www.omnytex.com >> > >> > On Wed, September 22, 2004 2:08 pm, Hubert Rabago said: >> > > 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 PROTECTED]> wrote: >> > >> 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. Zammetti >> > >> Founder and Chief Software Architect >> > >> Omnytex Tech
RE: Forward to a file on hard drive
Thank you for the help. This worked for me too. I used the same forward from struts-config in the jsp as I used in the RouterAction (which didn't work) I'll have my router action go to a jsp that redirects. Sort of clugee (sp) but gets the job done for now. Thank you and thanks to all the others who helped. Bart "Arumbakkam, Praveen \(Contractor\)" <[EMAIL PROTECTED]> wrote on 09/22/2004 03:12:58 PM: > Bmf5: > > Here is what I did to forward to a local file using the logic:redirect > tag. > > 1. Declare a global forward in your struts-config.xml - > > > path="file:///C:/AIM/AuditorWorkQueueHandheld.html" redirect="true" /> > > > 2. In a test JSP, I added: > > > > > 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, 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 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="file:///C:/AIM/AuditorWorkQueueHandheld.html" > redirect="true" > > This is the toString on the Forward in my RouterAction > > Forward = > ForwardConfig[name=handHeld,path=file:///C:/AIM/AuditorWorkQueueHandheld > ..html,redirect=true,contextRelative=false] > > I may have to try the stream to response suggestion or hardcode it some > javascript. > > Bart > > "Frank W. Zammetti (MLists)" <[EMAIL PROTECTED]> wrote on 09/22/2004 > 02:12:00 PM: > > > 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://www.omnytex.com > > > > On Wed, September 22, 2004 2:08 pm, Hubert Rabago said: > > > 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 PROTECTED]> wrote: > > >> 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. Zammetti > > >> Founder and Chief Software Architect > > >> Omnytex Technologies > > >> http://www.omnytex.com > > >> > > >> > > >> > > >> On Wed, September 22, 2004 2:03 pm, Hubert Rabago said: > > >> > In that case, try something like > > >> > > > >> > > >> > redirect="true"/> > > >> > > > >> > > > >> > 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 > > >> >> > initiate download of the file? > > >> >> > > >> >> FORWARD > > >> >> > > >> >> > > >> >> > > > >> >> > Your specifying an HTML file though, so I assume you want the > user > > >> to > > >> >> see > > >> >> > that page... So, th
RE: Forward to a file on hard drive
Bmf5: Here is what I did to forward to a local file using the logic:redirect tag. 1. Declare a global forward in your struts-config.xml - 2. In a test JSP, I added: 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, 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 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="file:///C:/AIM/AuditorWorkQueueHandheld.html" redirect="true" This is the toString on the Forward in my RouterAction Forward = ForwardConfig[name=handHeld,path=file:///C:/AIM/AuditorWorkQueueHandheld .html,redirect=true,contextRelative=false] I may have to try the stream to response suggestion or hardcode it some javascript. Bart "Frank W. Zammetti (MLists)" <[EMAIL PROTECTED]> wrote on 09/22/2004 02:12:00 PM: > 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://www.omnytex.com > > On Wed, September 22, 2004 2:08 pm, Hubert Rabago said: > > 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 PROTECTED]> wrote: > >> 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. Zammetti > >> Founder and Chief Software Architect > >> Omnytex Technologies > >> http://www.omnytex.com > >> > >> > >> > >> On Wed, September 22, 2004 2:03 pm, Hubert Rabago said: > >> > In that case, try something like > >> > > >> > >> > redirect="true"/> > >> > > >> > > >> > 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 > >> >> > initiate download of the file? > >> >> > >> >> FORWARD > >> >> > >> >> > >> >> > > >> >> > Your specifying an HTML file though, so I assume you want the user > >> to > >> >> see > >> >> > that page... So, the question is, is it a one-time page display or > >> are > >> >> you > >> >> > trying to redirect them to another webapp? > >> >> > >> >> > Can you be more specific about what your really trying to do? > >> >> > >> >> Apologies for the vagueness. Many thanks for the help. > >> >> > >> >> My piece of this system is a web app but it's presented through a > >> >> browser > >> >> embedded in a fat client. When the users click a certain link I need > >> to > >> >> do > >> >> some action stuff (which is working) and then render the html page > >> from > >> >> the > >> >> local hard drive. Once it's displayed I'm out of the picture and the > >> >> fat > >> >> c/s app is supposed to takeover. > >> >> > >> >> > >> >> > >> >> > >> >> > If you just need to display it, you could always open a stream on &
Re: Forward to a file on hard drive
I may be missing something here, but if the file is on the local client it would seem that the only way to display the local page is to return a page with a link to the local file: client Which of course the user would have click through for the actual display. JC [EMAIL PROTECTED] ler.com To: "Struts Users Mailing List" <[EMAIL PROTECTED]> cc: 09/22/2004 01:50 Subject: Re: Forward to a file on hard drive PM Please respond to "Struts Users Mailing List" 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="file:///C:/AIM/AuditorWorkQueueHandheld.html" redirect="true" This is the toString on the Forward in my RouterAction Forward = ForwardConfig[name=handHeld,path=file:///C:/AIM/AuditorWorkQueueHandheld.html,redirect=true,contextRelative=false] I may have to try the stream to response suggestion or hardcode it some javascript. Bart "Frank W. Zammetti (MLists)" <[EMAIL PROTECTED]> wrote on 09/22/2004 02:12:00 PM: > 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://www.omnytex.com > > On Wed, September 22, 2004 2:08 pm, Hubert Rabago said: > > 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 PROTECTED]> wrote: > >> 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. Zammetti > >> Founder and Chief Software Architect > >> Omnytex Technologies > >> http://www.omnytex.com > >> > >> > >> > >> On Wed, September 22, 2004 2:03 pm, Hubert Rabago said: > >> > In that case, try something like > >> > > >> > >> > redirect="true"/> > >> > > >> > > >> > 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 > >> >> > initiate download of the file? > >> >> > >> >> FORWARD > >> >> > >> >> > >> >> > > >> >> > Your specifying an HTML file though, so I assume you want the user > >> to > >> >> see > >> >> > that page... So, the question is, is it a one-time page display or > >> are > &g
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 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="file:///C:/AIM/AuditorWorkQueueHandheld.html" redirect="true" This is the toString on the Forward in my RouterAction Forward = ForwardConfig[name=handHeld,path=file:///C:/AIM/AuditorWorkQueueHandheld.html,redirect=true,contextRelative=false] I may have to try the stream to response suggestion or hardcode it some javascript. Bart "Frank W. Zammetti (MLists)" <[EMAIL PROTECTED]> wrote on 09/22/2004 02:12:00 PM: > 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://www.omnytex.com > > On Wed, September 22, 2004 2:08 pm, Hubert Rabago said: > > 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 PROTECTED]> wrote: > >> 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. Zammetti > >> Founder and Chief Software Architect > >> Omnytex Technologies > >> http://www.omnytex.com > >> > >> > >> > >> On Wed, September 22, 2004 2:03 pm, Hubert Rabago said: > >> > In that case, try something like > >> > > >> > >> > redirect="true"/> > >> > > >> > > >> > 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 > >> >> > initiate download of the file? > >> >> > >> >> FORWARD > >> >> > >> >> > >> >> > > >> >> > Your specifying an HTML file though, so I assume you want the user > >> to > >> >> see > >> >> > that page... So, the question is, is it a one-time page display or > >> are > >> >> you > >> >> > trying to redirect them to another webapp? > >> >> > >> >> > Can you be more specific about what your really trying to do? > >> >> > >> >> Apologies for the vagueness. Many thanks for the help. > >> >> > >> >> My piece of this system is a web app but it's presented through a > >> >> browser > >> >> embedded in a fat client. When the users click a certain link I need > >> to > >> >> do > >> >> some action stuff (which is working) and then render the html page > >> from > >> >> the > >> >> local hard drive. Once it's displayed I'm out of the picture and the > >> >> fat > >> >> c/s app is supposed to takeover. > >> >> > >> >> > >> >> > >> >> > >> >> > If you just need to display it, you could always open a stream on > >> the > >> >> file > >> >> > and render it to response manually. Seems like a lot of work > >> >> though... > >> >> > > >> >> > Can you be more specific about what your really trying to do? > >> >> > > >> >> > -- > >> >> > Frank W. Zammetti > >> >> > Founder and Chief Software Architect > >> >> > Omnytex Technologies > >> >> > http://www.omnytex.com > >> >> > > >> >> > On Wed, September 22, 2004 1:23 pm, [EMAIL PROTECTED] said: > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > 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 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 user's machine. > >> >> > >> > >> >> > >> Hubert > >> >> > >> > >> >> > >> On Wed, 22 Sep 2004 11:50:29 -0400, [EMAIL PROTECTED] > >> >> > >> <[EMAIL PROTECTED]> wrote: > >> >> > >> > > >> >> > >> > > >> >> > >> > Is it possible to forward to a file on a hard drive? I set up > >> a > >> >> > >> global > >> >> > >> > forw
Re: Forward to a file on hard drive
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. Zammetti (MLists) <[EMAIL PROTECTED]> wrote: > 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://www.omnytex.com > > > > On Wed, September 22, 2004 2:08 pm, Hubert Rabago said: > > 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 PROTECTED]> wrote: > >> 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. Zammetti > >> Founder and Chief Software Architect > >> Omnytex Technologies > >> http://www.omnytex.com > >> > >> > >> > >> On Wed, September 22, 2004 2:03 pm, Hubert Rabago said: > >> > In that case, try something like > >> > > >> > >> > redirect="true"/> > >> > > >> > > >> > 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 > >> >> > initiate download of the file? > >> >> > >> >> FORWARD > >> >> > >> >> > >> >> > > >> >> > Your specifying an HTML file though, so I assume you want the user > >> to > >> >> see > >> >> > that page... So, the question is, is it a one-time page display or > >> are > >> >> you > >> >> > trying to redirect them to another webapp? > >> >> > >> >> > Can you be more specific about what your really trying to do? > >> >> > >> >> Apologies for the vagueness. Many thanks for the help. > >> >> > >> >> My piece of this system is a web app but it's presented through a > >> >> browser > >> >> embedded in a fat client. When the users click a certain link I need > >> to > >> >> do > >> >> some action stuff (which is working) and then render the html page > >> from > >> >> the > >> >> local hard drive. Once it's displayed I'm out of the picture and the > >> >> fat > >> >> c/s app is supposed to takeover. > >> >> > >> >> > >> >> > >> >> > >> >> > If you just need to display it, you could always open a stream on > >> the > >> >> file > >> >> > and render it to response manually. Seems like a lot of work > >> >> though... > >> >> > > >> >> > Can you be more specific about what your really trying to do? > >> >> > > >> >> > -- > >> >> > Frank W. Zammetti > >> >> > Founder and Chief Software Architect > >> >> > Omnytex Technologies > >> >> > http://www.omnytex.com > >> >> > > >> >> > On Wed, September 22, 2004 1:23 pm, [EMAIL PROTECTED] said: > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > 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 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 user's machine. > >> >> > >> > >> >> > >> Hubert > >> >> > >> > >> >> > >> On Wed, 22 Sep 2004 11:50:29 -0400, [EMAIL PROTECTED] > >> >> > >> <[EMAIL PROTECTED]> wrote: > >> >> > >> > > >> >> > >> > > >> >> > >> > Is it possible to forward to a file on a hard drive? I set up > >> a > >> >> > >> global > >> >> > >> > forward like this > >> >> > >> > > >> >> > >> > forward name="lapTop" > >> >> path="C:\project\WorkQueueLaptop.html" > >> >> > >> > > >> >> > >> > I've since learned that the path is context relative so this > >> is a > >> >> no > >> >> > > go. > >> >> > >> > What technique do I need to use? Is it possible to handle > >> this > >> >> form > >> >> > > the > >> >> > >> > co
Re: Forward to a file on hard drive
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://www.omnytex.com On Wed, September 22, 2004 2:08 pm, Hubert Rabago said: > 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 PROTECTED]> wrote: >> 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. Zammetti >> Founder and Chief Software Architect >> Omnytex Technologies >> http://www.omnytex.com >> >> >> >> On Wed, September 22, 2004 2:03 pm, Hubert Rabago said: >> > In that case, try something like >> > >> > > > redirect="true"/> >> > >> > >> > 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 >> >> > initiate download of the file? >> >> >> >> FORWARD >> >> >> >> >> >> > >> >> > Your specifying an HTML file though, so I assume you want the user >> to >> >> see >> >> > that page... So, the question is, is it a one-time page display or >> are >> >> you >> >> > trying to redirect them to another webapp? >> >> >> >> > Can you be more specific about what your really trying to do? >> >> >> >> Apologies for the vagueness. Many thanks for the help. >> >> >> >> My piece of this system is a web app but it's presented through a >> >> browser >> >> embedded in a fat client. When the users click a certain link I need >> to >> >> do >> >> some action stuff (which is working) and then render the html page >> from >> >> the >> >> local hard drive. Once it's displayed I'm out of the picture and the >> >> fat >> >> c/s app is supposed to takeover. >> >> >> >> >> >> >> >> >> >> > If you just need to display it, you could always open a stream on >> the >> >> file >> >> > and render it to response manually. Seems like a lot of work >> >> though... >> >> > >> >> > Can you be more specific about what your really trying to do? >> >> > >> >> > -- >> >> > Frank W. Zammetti >> >> > Founder and Chief Software Architect >> >> > Omnytex Technologies >> >> > http://www.omnytex.com >> >> > >> >> > On Wed, September 22, 2004 1:23 pm, [EMAIL PROTECTED] said: >> >> > > >> >> > > >> >> > > >> >> > > >> >> > > 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 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 user's machine. >> >> > >> >> >> > >> Hubert >> >> > >> >> >> > >> On Wed, 22 Sep 2004 11:50:29 -0400, [EMAIL PROTECTED] >> >> > >> <[EMAIL PROTECTED]> wrote: >> >> > >> > >> >> > >> > >> >> > >> > Is it possible to forward to a file on a hard drive? I set up >> a >> >> > >> global >> >> > >> > forward like this >> >> > >> > >> >> > >> > forward name="lapTop" >> >> path="C:\project\WorkQueueLaptop.html" >> >> > >> > >> >> > >> > I've since learned that the path is context relative so this >> is a >> >> no >> >> > > go. >> >> > >> > What technique do I need to use? Is it possible to handle >> this >> >> form >> >> > > the >> >> > >> > config file? >> >> > >> > >> >> >> >> - >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> > - >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> >> >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > -
Re: Forward to a file on hard drive
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 PROTECTED]> wrote: > 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. Zammetti > Founder and Chief Software Architect > Omnytex Technologies > http://www.omnytex.com > > > > On Wed, September 22, 2004 2:03 pm, Hubert Rabago said: > > In that case, try something like > > > > > redirect="true"/> > > > > > > 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 > >> > initiate download of the file? > >> > >> FORWARD > >> > >> > >> > > >> > Your specifying an HTML file though, so I assume you want the user to > >> see > >> > that page... So, the question is, is it a one-time page display or are > >> you > >> > trying to redirect them to another webapp? > >> > >> > Can you be more specific about what your really trying to do? > >> > >> Apologies for the vagueness. Many thanks for the help. > >> > >> My piece of this system is a web app but it's presented through a > >> browser > >> embedded in a fat client. When the users click a certain link I need to > >> do > >> some action stuff (which is working) and then render the html page from > >> the > >> local hard drive. Once it's displayed I'm out of the picture and the > >> fat > >> c/s app is supposed to takeover. > >> > >> > >> > >> > >> > If you just need to display it, you could always open a stream on the > >> file > >> > and render it to response manually. Seems like a lot of work > >> though... > >> > > >> > Can you be more specific about what your really trying to do? > >> > > >> > -- > >> > Frank W. Zammetti > >> > Founder and Chief Software Architect > >> > Omnytex Technologies > >> > http://www.omnytex.com > >> > > >> > On Wed, September 22, 2004 1:23 pm, [EMAIL PROTECTED] said: > >> > > > >> > > > >> > > > >> > > > >> > > 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 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 user's machine. > >> > >> > >> > >> Hubert > >> > >> > >> > >> On Wed, 22 Sep 2004 11:50:29 -0400, [EMAIL PROTECTED] > >> > >> <[EMAIL PROTECTED]> wrote: > >> > >> > > >> > >> > > >> > >> > Is it possible to forward to a file on a hard drive? I set up a > >> > >> global > >> > >> > forward like this > >> > >> > > >> > >> > forward name="lapTop" > >> path="C:\project\WorkQueueLaptop.html" > >> > >> > > >> > >> > I've since learned that the path is context relative so this is a > >> no > >> > > go. > >> > >> > What technique do I need to use? Is it possible to handle this > >> form > >> > > the > >> > >> > config file? > >> > >> > > >> > >> - > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forward to a file on hard drive
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. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Wed, September 22, 2004 2:03 pm, Hubert Rabago said: > In that case, try something like > > redirect="true"/> > > > 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 >> > initiate download of the file? >> >> FORWARD >> >> >> > >> > Your specifying an HTML file though, so I assume you want the user to >> see >> > that page... So, the question is, is it a one-time page display or are >> you >> > trying to redirect them to another webapp? >> >> > Can you be more specific about what your really trying to do? >> >> Apologies for the vagueness. Many thanks for the help. >> >> My piece of this system is a web app but it's presented through a >> browser >> embedded in a fat client. When the users click a certain link I need to >> do >> some action stuff (which is working) and then render the html page from >> the >> local hard drive. Once it's displayed I'm out of the picture and the >> fat >> c/s app is supposed to takeover. >> >> >> >> >> > If you just need to display it, you could always open a stream on the >> file >> > and render it to response manually. Seems like a lot of work >> though... >> > >> > Can you be more specific about what your really trying to do? >> > >> > -- >> > Frank W. Zammetti >> > Founder and Chief Software Architect >> > Omnytex Technologies >> > http://www.omnytex.com >> > >> > On Wed, September 22, 2004 1:23 pm, [EMAIL PROTECTED] said: >> > > >> > > >> > > >> > > >> > > 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 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 user's machine. >> > >> >> > >> Hubert >> > >> >> > >> On Wed, 22 Sep 2004 11:50:29 -0400, [EMAIL PROTECTED] >> > >> <[EMAIL PROTECTED]> wrote: >> > >> > >> > >> > >> > >> > Is it possible to forward to a file on a hard drive? I set up a >> > >> global >> > >> > forward like this >> > >> > >> > >> > forward name="lapTop" >> path="C:\project\WorkQueueLaptop.html" >> > >> > >> > >> > I've since learned that the path is context relative so this is a >> no >> > > go. >> > >> > What technique do I need to use? Is it possible to handle this >> form >> > > the >> > >> > config file? >> > >> > >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forward to a file on hard drive
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 that it's an HTML document) and render it to the response manually. I THINK that will get you what you need... -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Wed, September 22, 2004 2:00 pm, [EMAIL PROTECTED] said: > > > > > > > > > > "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... So, the question is, is it a one-time page display or are > you >> trying to redirect them to another webapp? > >> Can you be more specific about what your really trying to do? > > Apologies for the vagueness. Many thanks for the help. > > My piece of this system is a web app but it's presented through a browser > embedded in a fat client. When the users click a certain link I need to > do > some action stuff (which is working) and then render the html page from > the > local hard drive. Once it's displayed I'm out of the picture and the fat > c/s app is supposed to takeover. > > >> If you just need to display it, you could always open a stream on the > file >> and render it to response manually. Seems like a lot of work though... >> >> Can you be more specific about what your really trying to do? >> >> -- >> Frank W. Zammetti >> Founder and Chief Software Architect >> Omnytex Technologies >> http://www.omnytex.com >> >> On Wed, September 22, 2004 1:23 pm, [EMAIL PROTECTED] said: >> > >> > >> > >> > >> > 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 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 user's machine. >> >> >> >> Hubert >> >> >> >> On Wed, 22 Sep 2004 11:50:29 -0400, [EMAIL PROTECTED] >> >> <[EMAIL PROTECTED]> wrote: >> >> > >> >> > >> >> > Is it possible to forward to a file on a hard drive? I set up a >> >> global >> >> > forward like this >> >> > >> >> > forward name="lapTop" >> path="C:\project\WorkQueueLaptop.html" >> >> > >> >> > I've since learned that the path is context relative so this is a >> no >> > go. >> >> > What technique do I need to use? Is it possible to handle this >> form >> > the >> >> > config file? >> >> > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forward to a file on hard drive
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 > > initiate download of the file? > > FORWARD > > > > > > Your specifying an HTML file though, so I assume you want the user to see > > that page... So, the question is, is it a one-time page display or are > you > > trying to redirect them to another webapp? > > > Can you be more specific about what your really trying to do? > > Apologies for the vagueness. Many thanks for the help. > > My piece of this system is a web app but it's presented through a browser > embedded in a fat client. When the users click a certain link I need to do > some action stuff (which is working) and then render the html page from the > local hard drive. Once it's displayed I'm out of the picture and the fat > c/s app is supposed to takeover. > > > > > > If you just need to display it, you could always open a stream on the > file > > and render it to response manually. Seems like a lot of work though... > > > > Can you be more specific about what your really trying to do? > > > > -- > > Frank W. Zammetti > > Founder and Chief Software Architect > > Omnytex Technologies > > http://www.omnytex.com > > > > On Wed, September 22, 2004 1:23 pm, [EMAIL PROTECTED] said: > > > > > > > > > > > > > > > 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 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 user's machine. > > >> > > >> Hubert > > >> > > >> On Wed, 22 Sep 2004 11:50:29 -0400, [EMAIL PROTECTED] > > >> <[EMAIL PROTECTED]> wrote: > > >> > > > >> > > > >> > Is it possible to forward to a file on a hard drive? I set up a > > >> global > > >> > forward like this > > >> > > > >> > forward name="lapTop" path="C:\project\WorkQueueLaptop.html" > > >> > > > >> > I've since learned that the path is context relative so this is a no > > > go. > > >> > What technique do I need to use? Is it possible to handle this form > > > the > > >> > config file? > > >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forward to a file on hard drive
"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... So, the question is, is it a one-time page display or are you > trying to redirect them to another webapp? > Can you be more specific about what your really trying to do? Apologies for the vagueness. Many thanks for the help. My piece of this system is a web app but it's presented through a browser embedded in a fat client. When the users click a certain link I need to do some action stuff (which is working) and then render the html page from the local hard drive. Once it's displayed I'm out of the picture and the fat c/s app is supposed to takeover. > If you just need to display it, you could always open a stream on the file > and render it to response manually. Seems like a lot of work though... > > Can you be more specific about what your really trying to do? > > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technologies > http://www.omnytex.com > > On Wed, September 22, 2004 1:23 pm, [EMAIL PROTECTED] said: > > > > > > > > > > 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 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 user's machine. > >> > >> Hubert > >> > >> On Wed, 22 Sep 2004 11:50:29 -0400, [EMAIL PROTECTED] > >> <[EMAIL PROTECTED]> wrote: > >> > > >> > > >> > Is it possible to forward to a file on a hard drive? I set up a > >> global > >> > forward like this > >> > > >> > forward name="lapTop" path="C:\project\WorkQueueLaptop.html" > >> > > >> > I've since learned that the path is context relative so this is a no > > go. > >> > What technique do I need to use? Is it possible to handle this form > > the > >> > config file? > >> > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forward to a file on hard drive
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 your server, of course. On Wed, 22 Sep 2004 13:23:30 -0400, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > 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 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 user's machine. > > > > Hubert > > > > On Wed, 22 Sep 2004 11:50:29 -0400, [EMAIL PROTECTED] > > <[EMAIL PROTECTED]> wrote: > > > > > > > > > Is it possible to forward to a file on a hard drive? I set up a global > > > forward like this > > > > > > forward name="lapTop" path="C:\project\WorkQueueLaptop.html" > > > > > > I've since learned that the path is context relative so this is a no > go. > > > What technique do I need to use? Is it possible to handle this form > the > > > config file? > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forward to a file on hard drive
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, is it a one-time page display or are you trying to redirect them to another webapp? If you just need to display it, you could always open a stream on the file and render it to response manually. Seems like a lot of work though... Can you be more specific about what your really trying to do? -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Wed, September 22, 2004 1:23 pm, [EMAIL PROTECTED] said: > > > > > 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 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 user's machine. >> >> Hubert >> >> On Wed, 22 Sep 2004 11:50:29 -0400, [EMAIL PROTECTED] >> <[EMAIL PROTECTED]> wrote: >> > >> > >> > Is it possible to forward to a file on a hard drive? I set up a >> global >> > forward like this >> > >> > forward name="lapTop" path="C:\project\WorkQueueLaptop.html" >> > >> > I've since learned that the path is context relative so this is a no > go. >> > What technique do I need to use? Is it possible to handle this form > the >> > config file? >> > >> > - >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forward to a file on hard drive
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 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 user's machine. > > Hubert > > On Wed, 22 Sep 2004 11:50:29 -0400, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: > > > > > > Is it possible to forward to a file on a hard drive? I set up a global > > forward like this > > > > forward name="lapTop" path="C:\project\WorkQueueLaptop.html" > > > > I've since learned that the path is context relative so this is a no go. > > What technique do I need to use? Is it possible to handle this form the > > config file? > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forward to a file on hard drive
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 user's machine. Hubert On Wed, 22 Sep 2004 11:50:29 -0400, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Is it possible to forward to a file on a hard drive? I set up a global > forward like this > > forward name="lapTop" path="C:\project\WorkQueueLaptop.html" > > I've since learned that the path is context relative so this is a no go. > What technique do I need to use? Is it possible to handle this form the > config file? > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]