Hi,

In my server side code I fetch some data from the database and create
an ArrayList. The list holds the database's data. Next, I  create a
XML file using the data in the arraylist. When I try to create a file
the file gets created in the project's root directory instead of
getting created in the current directory ,i.e, the "server" directory.
This is the line of code I am using :

package com.myorg.gwt.desk.server;

public class ProdDeskServerUtil {

         public static void writeListToFile(List<Task> taskList)
         {
                 Iterator<Task> taskListIterator = taskList.iterator();
                 PrintWriter out = null;
                 try
                 {
                        out = new PrintWriter(new 
FileOutputStream("tasks.data.xml"));
                         ......
                 }
        }
}

How can i create a file in the current directory  ?

Once the file gets created how should i read the file from the client
side code ?

My aim is to feed this XML file into  a TreeView widget.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GWT-Ext Developer Forum" 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/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to