If you fetch 'java.runtime.version' in freestanding code then you'll
get the version of the current default JRE, which might not be what
Tomcat is using.  But if you fetch it in a servlet, then you should
get the version of the JRE that's running Tomcat, no?

<?xml version="1.0" encoding="US-ASCII" ?>
<%@ page language="java" contentType="text/html; charset=US-ASCII"
    pageEncoding="US-ASCII"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"
/>
<title>Dummy Web Application</title>
</head>
<body>
<p>This is a test.</p>
<table border='1px'>
<tr>
<td>Java Runtime Environment version</td>
<td><%=System.getProperty("java.runtime.version")%></td>
</tr>
</table>
</body>
</html>

-- 
Mark H. Wood, Lead System Programmer   [EMAIL PROTECTED]
Typically when a software vendor says that a product is "intuitive" he
means the exact opposite.

Attachment: pgp9Ukc2i0fiz.pgp
Description: PGP signature

Reply via email to