RE: Servlet Access To Its Package Version

2007-04-27 Thread Daryl Odnert
By searching the archives, it seems that some people have worked around this issue by having the servlet do this: InputStream in = getServletContext().getResourceAsStream("/META-INF/MANIFEST.MF"); Manifest man = new java.util.jar.Manifest(in); Then, the servlet can access information i

Servlet Access To Its Package Version

2007-04-26 Thread Daryl Odnert
Let me start by explaining that my goal is to have a Java servlet log its implementation version number when it is loaded and initialized by Tomcat. I am having trouble with my current approach. I would appreciate responses that help me to fix my current approach, or offer alternative approaches