tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Einfeldt <ralph.einfe...@uptime-isc.de>
Subject AW: Servlet context and returned files
Date Mon, 09 Oct 2000 15:12:20 GMT
It is more a matter of your browser: 

He doesn't read the arguments to your 
servlet. (IE and NS are like twins
in this case)
To changed the behaviour you have to
change your application in a way, that
the browser doesn't see parameters but
real URL's: /MyServlet/MyFile.pdf

There are several ways to
accomplish this: 
 - With apache use mod_rewrite to
   translate /MyServlet/MyFile.pdf to /MyServlet?name=MyFile.pdf
 - Use tomcat to map all request for /MyServlet/* to /MyServlet
   and parse the requested URI get the file name

> -----Urspr√ľngliche Nachricht-----
> Von: Drew Kidder [mailto:Andrew.Kidder@Tivoli.com]
> Gesendet: Montag, 9. Oktober 2000 16:54
> An: tomcat-user@jakarta.apache.org
> Betreff: Servlet context and returned files

> >What happens is that when I click the link, it returns the 
> file - but 
> >instead of having the correct filename of "MyFile.pdf", it 
> has the name 
> >"MyServlet.pdf". It doesn't matter what file I click, I'll 
> always get a 
> >filename of "MyServlet" with the proper extension appended 
> on at the end. 
> >The file downloads correctly and such, but is named improperly.
> >

Mime
View raw message