Sunday, December 26, 2010

Deploy Google App Engine Application in Eclipse

So, how do we deploy our GAE using Google Plugins for Eclipse ?

First, edit the configuration file : appengine-web.xml. See the documentation for this file here.

After that, deploy the appengine by clicking the "Deploy App Engine Project" button. Fill in the application name, user and password in popup dialog and click "Deploy"


Done.

JSP: Get Current URL

Simple but often asked, how do I get URL of my current JSP page ?

Here's the code :
request.getRequestURL();
where request is JSP object implementation of HttpServletRequest.

Simple, isn't it ?