My goal is to create a web page in my Stuts webapp with links to download any file in the Tomcat/logs directory. I am able to do this using a my getFile.do action:
<a href="getFile.do?file=catalina.out">catalina.out</a> <a href="getFile.do?file=stdout.log">stdout.log</a> The problem is that when the user clicks this link the browser wants to download the file as "getFile.do" because that's what the href says the file is called. I really need something closer to: <a href="catalina.out">catalina.out</a> <a href="stdout.log">stdout.log</a> So that the browser will know what to call the file. Of course, since /manage/catalina.out does not exist Tomcat complains. Is there a way I can map any request that matches /manage/logfiles/* to my getFile.do action? I've played around with struts wildcard mappings a bit but couldn't get anything to work. Any help would be much appreciated. - AdamB