I'm modifying the default project that Eclipse creates when you create a new project with Google Web Toolkit and Google App Engine. It is the GreetingService sample project.
How can I read a request parameter in the client's .java file?
For example, the current URL is http://127.0.0.1:8887/MyProj.html?gwt.codesvr=127.0.0.1&foo=bar
and I want to use something like request.getParameter("foo") == "bar"
.
I saw that the documentation mentions the Request class for Python, but I couldn't find the equivalent for Java. It's listed as being in the google.appengine.ext.webapp
package, but if I try importing that into my .java file (with a com.
prefix), it says that it can't resolve the ext
part.