Meaningless Drivel is fun!
The moose likes JSP and the fly likes output Oracle JServ version dynamically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "output Oracle JServ version dynamically" Watch "output Oracle JServ version dynamically" New topic

output Oracle JServ version dynamically

John Bonifas

Joined: Nov 01, 2003
Posts: 1
Hello, All
I'd like to display the current version of the installed JServ container
in a JSP.
I've gotten this far:
Object objJServ = new org.apache.jserv.JServ();

...but when I try this:
I get a No Method Found error.
I looked in the JServ javadocs for my version, and it says that the version method is implemented as a method in the JServ() class.
How can I call the version() method so that it works?
Thanx in advance for all who reply,

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63529

One thing to check is to be sure that you are running against the same version of the class as the one you compiled against.
On a different track, you may also be able to get the info you are looking for in a container-generic manner with a call to servletContext.getServerInfo().

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: output Oracle JServ version dynamically
It's not a secret anymore!