You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Darren Hall <dh...@utrs.com> on 2006/10/18 15:14:25 UTC
Unable to forward to anything but a jsp
I'm having two issues -
1) I cannot forward (or map) to an individual file - only to a path.
I'd like to find a way to be able to forward to a specific file (html, pdf,
etc.). Is this a configuration issue?
2) When I execute a forward action in struts config, I can only
forward to a jsp file and have it display successfully. I can't forward to
any other type of file (html, pdf, etc.)
I need to be able to have the user click a link to a pdf file and have the
file display in a new browser. Unfortunately, all requests to my domain go
through my struts application, so I can't simply do this through apache
httpd server - and the pdfs need to exist in my application's domain so they
will be crawled by our search functionality and show up in search results.
I'm not sure how I can accomplish clicking a link and displaying a pdf file
directly given the above two constraints.
I'm using struts 1.2.9 apache 2.2 and tomcat 5.5. Can someone please tell
me what I'm doing wrong and point me towards a solution?
Thanks,
Darren
Re: Unable to forward to anything but a jsp
Posted by Laurie Harper <la...@holoweb.net>.
Maybe this will help:
http://wiki.apache.org/struts/StrutsFileDownload
L.
Darren Hall wrote:
> I'm having two issues -
>
> 1) I cannot forward (or map) to an individual file - only to a path.
> I'd like to find a way to be able to forward to a specific file (html, pdf,
> etc.). Is this a configuration issue?
>
> 2) When I execute a forward action in struts config, I can only
> forward to a jsp file and have it display successfully. I can't forward to
> any other type of file (html, pdf, etc.)
>
>
>
> I need to be able to have the user click a link to a pdf file and have the
> file display in a new browser. Unfortunately, all requests to my domain go
> through my struts application, so I can't simply do this through apache
> httpd server - and the pdfs need to exist in my application's domain so they
> will be crawled by our search functionality and show up in search results.
> I'm not sure how I can accomplish clicking a link and displaying a pdf file
> directly given the above two constraints.
>
> I'm using struts 1.2.9 apache 2.2 and tomcat 5.5. Can someone please tell
> me what I'm doing wrong and point me towards a solution?
>
>
>
> Thanks,
>
>
>
> Darren
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org