aspose file tools*
The moose likes Servlets and the fly likes How to detect which Servlet API version is being used? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to detect which Servlet API version is being used?" Watch "How to detect which Servlet API version is being used?" New topic
Author

How to detect which Servlet API version is being used?

James Hodgkiss
Ranch Hand

Joined: Jan 22, 2004
Posts: 401
Does anyone know if there is an easy way to determine which version of the Servlet API is being used?

The reason is that I have a context listener which isn't working on a particular server and I'm wondering if it is because it isn't using the Servlet 2.3 API.

Thanks,
James
Vijay Kiran
Greenhorn

Joined: Nov 18, 2004
Posts: 21
You might need to check the server documentation.

Check if this can help

http://www.stanford.edu/group/coursework/stanfordoki/oreilly/com.oreilly.servlet.VersionDetector.html


Vijay<br />I blog, therefore I am<br /><a href="http://www.vijaykiran.com" target="_blank" rel="nofollow">www.VijayKiran.com</a>
Vijay Kiran
Greenhorn

Joined: Nov 18, 2004
Posts: 21
You can download cos.jar from this location

http://servlets.com/cos/
James Hodgkiss
Ranch Hand

Joined: Jan 22, 2004
Posts: 401
That's just the job - thanks very much for this.
Vijay Kiran
Greenhorn

Joined: Nov 18, 2004
Posts: 21
James,

Be sure to read the license in case you want to use cos.jar in commercial app.


Regards,
Vijay
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to detect which Servlet API version is being used?