my dog learned polymorphism*
The moose likes JSP and the fly likes accessing JDK information from .jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "accessing JDK information from .jsp page" Watch "accessing JDK information from .jsp page" New topic
Author

accessing JDK information from .jsp page

Sara Watson
Greenhorn

Joined: Nov 18, 2003
Posts: 10
I want to display the JDK version that is being used by my web server. How can I access that information from my .jsp page? What object/method call will give me that info?
Thanks for your help,
Sara
Mike Firkser
Ranch Hand

Joined: Oct 21, 2003
Posts: 247

The following code will print out on your jsp page, a bunch of properties:

That prints out a bunch, but I found a property called "java.version" that may be what you're looking for.


Mike Firkser
Rutgers '84
Mike Firkser
Ranch Hand

Joined: Oct 21, 2003
Posts: 247

There is also a property called "java.runtime.version". Print them all out on a test page and see what you need.
Sara Watson
Greenhorn

Joined: Nov 18, 2003
Posts: 10
Thanks Mike. That's just what I needed.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: accessing JDK information from .jsp page
 
Similar Threads
JSP & EJB Problem
calling java files from jsp page
transfer Bean between JSP and backend
Best Design
Retrieving data from a servlet then forward to JSP page