users@jersey.java.net

[Jersey] Re: Read a file from a Jersey resource deployed on tomcat

From: Pavel Bucek <pavel.bucek_at_oracle.com>
Date: Fri, 09 Dec 2011 12:59:38 +0100

Hello Monika,

does following help?

http://stackoverflow.com/questions/1479036/access-file-in-webcontent-folder-from-a-servlet

Regards,
Pavel

On 12/9/11 11:44 AM, Monika Solanki wrote:
> In my jersey resource I would like to read a file which has been
> placed in WebContent on Tomcat. How do I get access to this file? I
> tried using the ServletContext through @Context, but it seems as if
> this is not available in the current API spec.
>
> Thanks
>