Honza
Use the getServerInfo() method of the ServletContext. It returns servername/serverversion.
To view it from your JSP page use...
<%= application.getServerInfo() %>
or
<%= getServletContext().getServerInfo() %>
Here is a link to the documentation on the ServletContext...
http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/ServletContext.html
-Calvin
At 05:48 AM 3/12/2003, you wrote:
Hi,
does anybody know how to get version of allready installed Tomcat? I wan't to create upgrade script of product that uses Tomcat and need to check version from this script.
I browse through the sources and only version information is string that is displayed to console after Tomcat is started ("Apache Tomcat/4.0.6"), but I cannot find the version string alone.
Thank for your help Honza
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
