Re: Get file on server with a pattern
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 <lorris.cou...@gmail.com> 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 google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
> 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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home