Howdy,
Since it's your JSP generating the PDF file, change your JSP to create
the PDF file under your context. Or better yet, in your context's
temporary directory
(ServletContext#getAttribute("javax.servlet.context.tempdir"); )
If under your webapp, you can use a request dispatcher or a response
sendRedirect to have the browser fetch the PDF itself. If in your
tempdir (or under your context as well), you can use a servlet to stream
the PDF.
Yoav Shapira
Millennium ChemInformatics
>-----Original Message-----
>From: Jose Euclides da Silva Junior - DATAPREVRJ
>[mailto:[EMAIL PROTECTED]
>Sent: Wednesday, September 24, 2003 4:22 PM
>To: '[EMAIL PROTECTED]'
>Subject: How to make Dispatcher send the right resource?
>
>Hi TomCat guys,
>my jsp generates a PDF file, which should be send to the browser.
However,
>this pdf file is created under Tomcat's bin directory (outside my
context
>path) instead of my app context (WEB-INF\guia). So, how can my jsp
catch
>this file or better, how can i change TomCat configuration?
>Thanks in advance,
>Euclides.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
This e-mail, including any attachments, is a confidential business communication, and
may contain information that is confidential, proprietary and/or privileged. This
e-mail is intended only for the individual(s) to whom it is addressed, and may not be
saved, copied, printed, disclosed or used by anyone else. If you are not the(an)
intended recipient, please immediately delete this e-mail from your computer system
and notify the sender. Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]