(First post!!)
Hi, I am working on a
J2EE web application and I use an
ant script to generate APPWAS and DATAWAS ear files to deploy the application to its application and data zones. The application is supposed to display the current build version for the end user on all
JSP pages, so it is being inserted into a header jsp file which is part of the site layout, however I am doing this by find-replacing placeholder text in the JSP files using the ant script. Instead of this, I want to save the build label to the Implementation-Version attribute of the ear manifest file, and have a call in the JSP to fetch this value. This would allow the deployed JSP code to stay consistent with its version control copy. I would like to know how to accomplish this.
Implementation details:
Framework:
Struts 1.2 on IBM WAS 6.1.
IDE: RAD 7.0
I look forward to hearing your suggestions. Thanks!