On Sunday, June 12, 2016 at 2:08:35 PM UTC+2, Stefan Falk wrote:
I don't know why but all requests are forcing me to to map each Servlet to something like<servlet-mapping><servlet-name>xsrf</servlet-name> <url-pattern>/app/xsrf</url-pattern> </servlet-mapping><servlet-mapping><servlet-name>whatever</servlet-name> <url-pattern>/app/whatever</url-pattern> </servlet-mapping>and so on. I can't find anything that is actually setting the "base url" to e.g. localhost:8080/app for all requests
(assuming GWT-RPC here)
That base URL is GWT.getModuleBaseURL() http://www.gwtproject.org/javadoc/latest/com/google/gwt/core/client/GWT.html#getModuleBaseURL()
but does anybody know how I can change that?
See http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/rpc/RemoteServiceRelativePath.html
You can cast your *Async object (created by GWT.create()) to ServiceDefTarget and set the path you want (you'll want to set it relative to some of the URLs from the com.google.gwt.core.client.GWT class)
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment