google-app-engine
Google App Engine - Retrieving Parameters from URI in a doGet()?
In the doGet() method of a servlet, how can I get parameters given within the URI? For example, if I have a servlet mapped to /getContentServlet, Then one could do a jQuery $.get() to the URI http://mysite.appspot.com/getContentServlet?var1=foo&var2=bar: public void doGet(HttpServletRequest request, HttpServletResponse response){ // Get parameters "foo" and "bar" from the URI } How can I do this? Thanks!
You can achieve that by using the getParameter method: public void doGet(HttpServletRequest request, HttpServletResponse response){ String var1 = request.getParameter("var1"); // foo String var2 = request.getParameter("var2"); // bar }
Related Links
app.yaml configuration file -web application
AppEngine Memcache always returns null
How to force a user to re-enter login password using PAPE extension with max_auth_age=0
db.get() vs db.get_by_key_name() performance (GAE BIgtable/Datastore)
Avg Cpu , URI uses a hight amount of cpu
Installable Google App Engine Apps
App Engine query.fetch() timing out on large database?
App engine - redirect to static content
Modify/Delete datastore Index on google app engine
app engine - how can i increase the datastore item size limit
in app engine how to specify column order of export (download) from datastore
Is Google App Engine the easy way out?
Securing a deployed Roo/GWT application
Google App Engine - Bulkloading using RemoteApiServlet - Billing
Is there a way to get the google app engine developer tool to show post data?
Performance with multiple OR operators