• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

output Oracle JServ version dynamically

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:
objJServ.version();
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,
deck

 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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().
bear
reply
    Bookmark Topic Watch Topic
  • New Topic