Hi,
>is there any JSP code to get some details about the running Tomcat
>instance?
Sure, you can get some information:
- HttpServletRequest#getRequestURL would give you the server name and
port.
- ServletRequest#getLocalAddr/getLocalPort/getLocalName would give
network-lever information on where the request was received, in case the
URL was somehow manipulated before it got to your JSP.
- ServletContext#getServerInfo would return a server information string
which for tomcat includes the server version.
- System.getProperty("catalina.home") would show you CATALINA_HOME under
most configurations.
- System.getProperty("java.home") would show you JAVA_HOME under most
configurations. In fact take a look at System.getProperties(), you can
get a bunch of information there.
That's probably enough for your needs?
Yoav
This e-mail, including any attachments, is a confidential business communication, and
may contain information that is confidential, proprietary and/or privileged. This
e-mail is intended only for the individual(s) to whom it is addressed, and may not be
saved, copied, printed, disclosed or used by anyone else. If you are not the(an)
intended recipient, please immediately delete this e-mail from your computer system
and notify the sender. Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]