On the server, you can use Java (or whatever else you want). So, make
an RPC call from the client to the server to get the file names. You
could return a string array. On the server, it could be as easy as:

public String[] getImageNames() {
  return new File('images').list();
}

Obviously, you would want to throw in some error checking and such.

HTH,
Chad

On Mar 28, 9:21 pm, "sc3sc3 ." <[email protected]> wrote:
> Jeff Chimene wrote:
> > On 03/28/2010 11:19 AM, sc3sc3 . wrote:
> >> hi
> >> i have directory with images im my war file:
> >> /war/images
> >> how can i iterate over the contents of this directory
> >> when my application starts
> >> i have to build: List<String> imageNames
> >> thanks for your time
> >> sc3*2
>
> > Can you define the images using a client bundle? See
> >http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html
>
> if i understand it right
> using the above i have to manually define all the images
>
> i would prefer reading the content of the directory 'on the fly'
> there can be a lot of images
>
> thanks

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