Yeah, that doesn't sounds great.

I've never read a book on GWT. All the information you need can be got
from google's GWT page and this forum.

On Feb 5, 2:49 am, beeky <[email protected]> wrote:
> Dan and Isaac,
>
> Thanks very much for the explanation.  I think the basic problem is
> the book.  For this example it never makes clear where the service
> entry point comes from.  A rather large and troublesome omission given
> that this is a fundamental part of the client-server contract.
>
> -=beeky
>
> On Feb 3, 7:48 pm, Isaac Truett <[email protected]> wrote:
>
> > Dan is correct. For hosted mode, there would be a <servlet> tag such
> > as that. For web mode or hosted mode with -noserver, it would be a
> > mapping in web.xml.
>
> > On Tue, Feb 3, 2009 at 5:22 PM, Dan Ox <[email protected]> wrote:
>
> > > there should be an entry in your module.gwt.xml file similar to:
>
> > > <servlet path="/tasks" class="com.myapp.TaskServlet" />
>
> > > That is where the task url is registered in hosted mode. When you
> > > deploy to a web server, you will need to specify the servlet with the
> > > "tasks" mapping in your web.xml.
>
> > > On Feb 4, 8:31 am, beeky <[email protected]> wrote:
> > >> Isaac,
> > >> Thanks for the offer to help.  Here are the lines from the book, I
> > >> think this is all that is needed to illustrate my question.
>
> > >> TaskServiceAsync service = (TaskServiceAsync) GWT.create
> > >> (TaskService.class);
> > >> ServiceDefTarget serviceDef = (ServiceDefTarget) service ;
> > >> serviceDef.setServiceEntryPoint(GWT.getModuleBaseURL() + "tasks" ) ;
>
> > >> It's "tasks" that has me confused.  I have the example code from the
> > >> book but I don't see "tasks" used anywhere.  What am I looking for, a
> > >> web.xml?  And just to make matters more confusing, is this something
> > >> that GWT generates or is this mapping (whereever it is) the developers
> > >> responsibility?
>
> > >> Thanks,
> > >> -=b
>
> > >> On Feb 3, 3:26 pm, Isaac Truett <[email protected]> wrote:
>
> > >> > It's a URL. If your GWT app is located athttp://www.foo.com/myappand
> > >> > you set the service entry point to GWT.getModuleBaseURL() +
> > >> > "myservice" then you'll end up sending an HTTP request 
> > >> > tohttp://www.foo.com/myapp/myservice, and it will be received by the
> > >> > servlet mapped to that URL.
>
> > >> > I haven't seen the example in question so I couldn't speak to why it
> > >> > doesn't make sense. If you want to post the relevant bits, I'd be
> > >> > happy to puzzle over it with you. It may, of course, just be a typo.
>
> > >> > On Tue, Feb 3, 2009 at 3:06 PM, beeky <[email protected]> 
> > >> > wrote:
>
> > >> > > I'm working my way through _Beginning Google Web Toolkit_ by Smeets,
> > >> > > Boness and Bankras and I'm thoroughly confused by the usage of
> > >> > > setServiceEntryPoint().
>
> > >> > > What is the parameter for this method supposed to be?  It appears to
> > >> > > be a path since GWT.getModuleBaseURL() is always used as part of the
> > >> > > parameter.  But in the example from BGWT the rest of the url does not
> > >> > > correspond to anything in the downloaded example code.
>
> > >> > > I thought perhaps the portion after getModuleBaseURL() was a
> > >> > > configuration item, i.e. a setting for service entry point in
> > >> > > *.gwt.xml but that does not seem to be the case either.
>
> > >> > > Could someone explain what this param is and how it is arrived at?
>
> > >> > > Thanks for any help or guidance,
> > >> > > -=beeky
--~--~---------~--~----~------------~-------~--~----~
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