I am in the same boat as Bob. I already have a servlet displaying the filenames to select from. My servlet is mapped to a different name in web.xml file. How should I proceed. Should I have another new servlet? What about for different file formats. Should it also be mapped?

thanks,
suba suresh.

David Smith wrote:
I would recommend a servlet that streams the files from some configured absolute path(s) to the client. It's reasonably simple and allows you some degree of control over what is delivered. Map the servlet to *.pdf in your web.xml to make it respond to all requests for pdfs.

--David

Bob Wyatt wrote:

For the client side, sure.
I already know it works if I copy the pdf file under my tomcat
application... I just don't want to move hundreds of files there...

Regards,

Bob

-----Original Message-----
From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 20, 2006 07:30
To: Tomcat Users List
Subject: Re: pdf documents

Those files are in a proprietary format..you'll need to go to adobe and get the PDF plugin/viewer for display-
M-
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- From: "Suba Suresh" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Monday, June 19, 2006 10:28 PM
Subject: Re: pdf documents


I have the same problem as Bob but files mapping into different file systems. I also tried the context mapping as you (Mark)had suggested with app.xml file. I will read about the link config tomorrow and try it. Any help would be appreciated.

thanks,
suba suresh.

Bob Wyatt wrote:
Mark,

No... Didn't know about it...
Now that I know about it (Thank You), I'm not sure of what really needs to be done... No where under $CATALINA_HOME do I have a defaultcontext.xml, context.xml, or similarly named file. All of my similarly named files are *.html files


or
directories, as follows:

#pwd
/usr/local/jakarta-tomcat-5
# find . -name \*context\* -print
./server/webapps/admin/context
./server/webapps/admin/defaultcontext
./webapps/tomcat-docs/config/printer/context.html
./webapps/tomcat-docs/config/printer/defaultcontext.html
./webapps/tomcat-docs/config/context.html
./webapps/tomcat-docs/config/defaultcontext.html
./webapps/wade2/scripts/contextmenu.css

So I'm not sure what to do - any advice?

Regards,

Bob
-----Original Message-----
From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Monday, June 19, 2006 21:13
To: Tomcat Users List
Subject: Re: pdf documents

Bob Wyatt wrote:

I have a directory that contains hundreds of pdf files.

I have Tomcat 5.0.28 running on AIX 5.2.

Under the webapps/appname directory, if I create a symbolic link to the

pdf

files, they will not display.

Have you enabled linking? See the allowLinking property at
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

Mark


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to