My problem is that getServletContext always returns null.
I've also tried to put in a overridden init() but didn't help.

ciosbel.

On May 19, 9:23 am, Lorris <[email protected]> wrote:
> Thank you for your answer,
>
> This is my solution if another people need it :
>
> This is the content of my RPC method in server side.
>
> String realPath =
> getServletContext().getRealPath("/").concat(gwtModuleName); // Or
> other folder you want to access
>         File f = new File(realPath);
>         for (String s : f.list()) {
>             if (s.matches(PATTERN)) {
>                 // Do the job
>             }
>
> }
>
> Hope this will help.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to