On Tue, May 18, 2010 at 3:58 AM, Lorris <[email protected]> wrote:
> Hello,
>
> I'd like to know if it's possible with GWT to get files on server but
> without known their names but with a pattern (like "menus*.xml" for
> example).
>
> I did this with success but that need to know the file name to get
>
> RequestBuilder requestBuilder = new RequestBuilder(RequestBuilder.GET,
>                "fileName.xml");
>        try {
>            requestBuilder.sendRequest(null, new RequestCallback() {
>                public void onError(final Request request, final
> Throwable exception) {
>                }
>
>                public void onResponseReceived(final Request request,
> final Response response) {
>                    String text = response.getText();
> //Do anything
>                }
>            });
>        } catch (RequestException ex) {
>        }
>
>
> But i don't know if I can get all the files matching to my pattern or
> maybe get the list of file name and test my pattern for each of them.
>
> Thank you for your time. (and sorry for my english)

You need to get the list of files from the server first. (You need to
do your pattern matching on the server)

Also, please do not double post. If you want to clarify a post, reply
to it so that it stays in the same thread.

-- 
Chris Conroy
Software Engineer
Google, Atlanta

-- 
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