-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Lev,
On 2/3/12 8:53 AM, Lev A KARATUN wrote: > I'm trying to write a simple jsp to make some superusers able to > download tomcat logs via browser after entering a password. (In my > organization it's not permitted to give anyone the "manager" role) You could bail-out and use a separate utility like PsiProbe which, I believe, has this kind of thing built right-in. > I've already managed to get a list log-files' names (just copied > someone's part of code and made some adjustments), but when I'm > trying to make download links, I don't know how can I specify the > path to /$CATALINA_BASE/logs via my web-browser. As far as I can > see, I can reach only folders like /$CATALINA_BASE/webapps/myapp > upon entering the link http://myhost:port/myapp. > > So, the question is - how can I access tomcat's logs using my jsp? Can you give us a sample of how you are trying to serve the file? Are you performing a <forward> and trying to let the DefaultServlet serve the log, or are you reading the file yourself and streaming it back to the client? I believe only the latter will be possible without significant alternative configuration. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk8sC9cACgkQ9CaO5/Lv0PCKbwCeLt3cUDYf0DjYsF76F9cLVD3s migAnRHjThUJTyJ0Z2WiiFodz2Zq7GSx =jWbS -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org