> I'm not sure whether it's possible to access something in
> WEB-INF using getResourceAsStream.
>
Yes, it is possible, the servlet spec[1] allows for it
explicitly:
SRV.9.5 "Directory Structure"
... No file contained in the WEB-INF directory may
be served directly to a client by the con
uot;/WEB-INF/Test.txt");
Ronald.
>
>
> -Original Message-
> From: Ronald Wildenberg [mailto:[EMAIL PROTECTED]]
> Sent: 13 June 2002 12:24
> To: [EMAIL PROTECTED]
> Subject: [Fwd: Re: getResourceAsStream(java.lang.String path)]
>
> ---- Original Message ---
AIL PROTECTED]>
06/13/02 04:54 PM
Please respond to "A mailing list for discussion about Sun Microsystem's Java Servlet API Technology."
To: [EMAIL PROTECTED]
cc:
Subject: Re: [Fwd: Re: getResourceAsStream(java.lang.String pa
o:[EMAIL PROTECTED]]
Sent: 13 June 2002 12:24
To: [EMAIL PROTECTED]
Subject: [Fwd: Re: getResourceAsStream(java.lang.String path)]
Original Message ----
Subject: Re: getResourceAsStream(java.lang.String path)
Date:Thu, 13 Jun 2002 16:34:51 +0530
From:[EMAIL P
Original Message
Subject:
Re: getResourceAsStream(java.lang.String path)
Date:
Thu, 13 Jun 2002 16:34:51 +0530
From:
[EMAIL PROTECTED]
To:
[EMAIL PROTECTED]
But still iam getting the same
result
Is there any wrong in my code
You can get a character stream (= Reader) by using java.io.InputStreamReader.
Ronald.
"[Jwas J]" wrote:
Hello
Can anyone tell me where is "getResourceAsStream(java.lang.String
path)" is used .
We only get byte stream right
? Is there any way to get character stream.
Regards
Jwas
Hello
Can anyone tell me where is "getResourceAsStream(java.lang.String path)" is used .
We only get byte stream right ? Is there any way to get character stream.
Regards
Jwas