On Mon, Apr 13, 2009 at 11:31 PM, Arun <[email protected]> wrote: > > HI, > > i am new to GWT, I have similar query. I want to open a file which is > place somewhere in server file system (i.e. a directory on server > contains some directory and files in it). I have to represent it in > tree structure and display the file on click of leaf Node. > > I am paused at opening a file on click event. I want to open it in a > widget ( every time a new leaf node click on tree a file would be > opened opened in same window/widget replacing the old one). > > could any one tell me what approach i should follow?
There may be some Java RPC stuff that will do this for you, if you have Java available on the server. If your server is Apache based and allows "Index" (or the equivilent for another server technology), then you could parse the HTML output from a CGI get of the requisite directory. Otherwise, you'll need a server-side process to accept a file name request, perform the file lookup and return the results to your client. Just like Javascript, there's nothing inherent in GWT that performs server side directory traversal. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
