You should be able to use getClass().getResourceAsStream(filePath)).

On Mon, Apr 5, 2010 at 4:58 AM, mlounnaci <mlounn...@hb-technologies.dz>wrote:

>
> Hello
>
> I have a problem when i try to reach some files inside my webapp.
> I have a folder inside the root of my webapp when i try to access it using:
> new ClassPathResource("/MyFolder");
> or:
> new FileSystemResource("/MyFolder");
>
> The file will not be found.
>
> Help please.
>
> Regards
>
> --
> View this message in context:
> http://n4.nabble.com/WebApp-root-path-tp1751501p1751501.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>
>

Reply via email to