I've never done this but I think you can call
RequestFactory.initialize(EventBus eventBus, RequestTransport
transport) passing DefaultRequestTransport as transport.
You can call DefaultRequestTransport.setRequestUrl() to change the
default URL used by the transport.  The default is
GWT.getHostPageBaseURL() + "gwtRequest"

On Dec 29, 7:15 pm, Arny <[email protected]> wrote:
> Great. Works with
> RequestFactoryServlet.getThreadLocalRequest().getSession(). Thanks.
>
> Well, web.xml is server-side mapping. But how to force GWT (client)
> use the mapped URL, instead of /gwtRequest?
>
> On Dec 30, 4:03 am, Y2i <[email protected]> wrote:
>
>
>
>
>
>
>
> > If you are asking about RequestFactoryServlet on the server side then
> > you can use RequestFactoryServlet.getThreadLocalRequest() to access
> > the current request and then the session.
>
> > web.xml has a <servlet-mapping/> associated to requestFactory <servlet/>: 
> > its <url-pattern/> element can be changed to point it to a
>
> > different URL.
>
> > On Dec 29, 6:32 pm, Arny <[email protected]> wrote:
>
> > > Hello,
>
> > > Is there a way to access the session from inside the RequestFactory?
> > > I want to return elements specifically for users with the right access
> > > rights.
>
> > > Using AppEngine on back end.
>
> > > Another question: Is it possible to change the /gwtRequest URL to
> > > something else?
>
> > > Appreciate any help.
> > > Thanks

-- 
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