You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Mark Simms <su...@javazon.com> on 2001/04/30 17:30:05 UTC

getServerInfo()

Does anyone know if the string returned from this method has been parseable to obtain the Server Vendor, version, and servlet/jsp version supported ?

I have a parse method for Tomcat, but not sure if it will work with BEA Weblogic or IBM Websphere detection.....

Are all of the app server vendors following the same format ?


Re: getServerInfo()

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Mon, 30 Apr 2001, Mark Simms wrote:

> Does anyone know if the string returned from this method has been
> parseable to obtain the Server Vendor, version, and servlet/jsp
> version supported ?
> 
> I have a parse method for Tomcat, but not sure if it will work with
> BEA Weblogic or IBM Websphere detection.....
> 
> Are all of the app server vendors following the same format ?
> 
> 

I wouldn't count on anything for this method, but you can use
getMajorVersion() and getMinorVersion() to determine the servlet spec that
is supported.  For example, Tomcat 4.0 returns 2 and 3, respectively,
because it supports 2.3.

Craig