I'm running jboss-3.2.6, with the included Tomcat web server.
>From a java servlet I want to create a link to a pdf file. Consider the following two lines from my servlet:
out.println("<a href='test1.gif'>Click here to get the logo</a><br>");
out.println("<a href='test2.pdf'>Click here to get the pdf</a><br>");
The first one correctly links to the gif file when the user clicks on the text. The second line produces the error "The requested resource (/demo/test2.pdf) is not available." test1.gif and test2.pdf are both in the same folder as deployed in the web server. I've shown this to a few people and they think that the second line should work. They would expect the file to come up in Acrobat.
Is there some configuration option I have to enable in the web server to allow linking to pdf files?
Thanks,
Mike-