Thanks a lot for the detailed answer. I will try as soon as possible.

On 7 déc, 15:44, "Robert Hanson" <[EMAIL PROTECTED]> wrote:
> > If I do so, the rpc services in HelloWorld do not work anymore.
>
> You just need to set the target URL of the remote services properly,
> and that is dependent on your setup.
>
> 1) For example, perhaps you can use an absolute URL:
>   /parth/to/servlet
>
> 2) Or relative to the JS code.
>   GWT.getModuleBaseURL() + servlet
>
> 3) Or relative to the HTML page that hosts the GWT app:
>   GWT.getHostPageBaseURL() + servlet
>
> 4) Specify the URL to the servlet in the HTML code of the hosting
> page, like with the Dictionary class.
>  http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...
>   Dictionary config = Dictionary.getDictionary("config");
>   config.getServletUrl()
>
> The hosting page is generated by the GWT compiler, but there is no
> requirement for you to use that page, nor do you need to keep it in
> the same directory.
>
> So first decide where you want to place the files (which you have
> done), then second decide how to specify the URL to the servlet.  Part
> of this decision will be based on how you test (absolute paths are
> problematic), the different deployment targets you have (what works on
> one server might not work on another), etc.
>
> Option #4 gives you the most control, but it is more common to see
> options #2 and #3 in use.  All in all, you need to choose the right
> option for your environment.  And during deployment it is useful to
> use FireBug for debugging.
>
> Robhttp://roberthanson.org
>
> On Sun, Dec 7, 2008 at 6:00 AM, GWT Newbie <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > I was wondering if it is possible to configure the structure of the
> > files generated by gwt.
>
> > In detail, assume that I have a project HelloWorld. GWT will generate
> > something like:
>
> > com.mypackage.gwt.HelloWorld
> >  |--> some files .rpc
> >  |--> some files .png
> >  |--> some files .html
> >  |--> some files .gif
> >  |--> some files .js
> >  |--> some files .css
> >  |--> a directory gwt
>
> > When I deploy this project into Tomcat, I have to copy all these files
> > into webapps\HelloWorld:
> > $TOMCAT_HOME\webapps\HelloWorld
> >  |--> some files .rpc
> >  |--> some files .png
> >  |--> some files .html
> >  |--> some files .gif
> >  |--> some files .js
> >  |--> some files .css
> >  |--> a directory gwt
>
> > If I need to add some files of mine, it will be a mess in no time.
>
> > What I want to do is to move all these GWT files into a directory.
> > This will look like this:
> > $TOMCAT_HOME\webapps\HelloWorld
> >  |--> gwtmodule_01
> >  |     |--> some files .rpc
> >  |     |--> some files .rpc
> >  |     |--> some files .png
> >  |     |--> some files .html
> >  |     |--> some files .gif
> >  |     |--> some files .js
> >  |     |--> some files .css
> >  |     |--> a directory gwt
> >  |--> some files of mine
>
> > If I do so, the rpc services in HelloWorld do not work anymore.
> > Is it possible to do so ?
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to