RE: How to read contents of MANIFEST.MF

2003-10-10 Thread Kris Schneider
It's not mine, I'm just holding onto it for a friend.

Quoting Mark Galbreath <[EMAIL PROTECTED]>:

> Where did you get this from?
> 
> -Original Message-
> From: Kris Schneider [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 10, 2003 7:50 AM
> 
> import java.util.jar.Manifest;

-- 
Kris Schneider 
D.O.Tech   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to read contents of MANIFEST.MF

2003-10-10 Thread Mark Galbreath
Where did you get this from?

-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 7:50 AM

import java.util.jar.Manifest;



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to read contents of MANIFEST.MF

2003-10-10 Thread Kris Schneider
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 <[EMAIL PROTECTED]>:

> 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

-- 
Kris Schneider 
D.O.Tech   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to read contents of MANIFEST.MF

2003-10-10 Thread Mark Galbreath
1.  the META-INF directory should be under the webapp root, not a WEB-INF
subdirectory;

2.  read the file into an action class with java.io.FileReader, set the
object in some scope, and display it in a JSP with a .

Mark

-Original Message-
From: Martin Gross [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 7:13 AM
To: Struts Users Mailing List
Subject: How to read contents of MANIFEST.MF


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]