In your deployed application:

WEBAPP/WEB-INF/classes/your.pakage/server/..... <--- server classes
WEBAPP/WEB-INF/classes/your.pakage/client/.....  <--  client classes
WEBAPP/your.package/                                         <-- public
resources

And yes client (GWT) has only access to public resources:
 * under WEBAPP
 * outside WEB-INF

On Mon, Apr 20, 2009 at 5:17 PM, Neo <deepak.krv2...@gmail.com> wrote:

>
> In my GWT project, I have three standard directories :
> - client
> - server
> - public
>
> So do u mean that any code inside the client directory wont have
> access to anything outside the public directory ?
>
>
> On Apr 20, 7:55 pm, Neo <deepak.krv2...@gmail.com> wrote:
> > In my server side code, I create a xmlfileusing the following line
> > of code :
> > PrintWriter out = new PrintWriter(new FileOutputStream
> > ("tasks.data.xml"));
> >
> > Thefilegets created in the Project's root directory.
> >
> > Next, inside my client side code I want togetthepathof thefile
> > created. Hence, i use :
> > GWT.getModuleBaseURL()+"tasks.data.xml"
> >
> > But I run into an exception saying "thefilewas not found".
> >
> > Can anybody please help me out in this.
> > I want thepathof thefile.
> >
>


-- 
   “There are two ways of constructing a software design: One way is to make
it so simple that there are obviously no deficiencies, and the other way is
to make it so complicated that there are no obvious deficiencies. The first
method is far more difficult.”

   Sir Charles Anthony Richard Hoare

--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to