On 03/03/2007, at 5:42 PM, Paul A. Hoadley wrote:
Ultimately what I want to do is quite simple: display a build number in the footer of some JSP pages. I'm using Ant's 'buildnumber' task to increment the build number at each compile, and I am adding a global 'Implementation-Version' property to the manifest file when constructing the WAR. The web application then uses getImplementationVersion() on some member package in an attempt to retrieve the build number---it shouldn't even matter which package, since the property in the manifest file is not in any named section, and thus constitutes the default. getImplementationVersion() consistently returns null, however---I assume it just can't seem to find the manifest file within the WAR structure.
Let me ask the question differently. I use Ant to create /META-INF/ MANIFEST.MF as described above (using a 'manifest' element as a child of the 'war' element). It contains the property "Implementation- Version".
1. How can I read the value of the property from some arbitrary class, say /WEB-INF/classes/some/package/Version.class?
2. Is there a more appropriate place to store application-wide properties like this, and if so, where is it?
-- Paul. w http://logicsquad.net/ h http://paul.hoadley.name/ --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]