struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gross <m.gr...@evolt.de>
Subject Re[2]: How to read contents of MANIFEST.MF
Date Fri, 10 Oct 2003 12:48:47 GMT
That is what I was looking for. Thanks a lot.

> Will this do?

> import java.util.jar.Manifest;
> ...
> ServletContext ctx = ...;
> InputStream in = ctx.getResourceAsStream("/META-INF/MANIFEST.MF");
> if (in != null) {
>   Manifest mfst = new Manifest(in);
>   ...
>   in.close();
> }

> Quoting Martin Gross <m.gross@evolt.de>:

>> I would like to read the content of /WEB-INF/META-INF/MANIFEST.MF file
>> by a struts based application. Does anybody have an example how to do
>> it? The only references I found are only for jar files.
>> 
>>  TIA,
>>  Martin


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message