One way is the RequestDispatcher#forward [1<http://download.oracle.com/javaee/5/api/javax/servlet/RequestDispatcher.html>] method
[1] http://download.oracle.com/javaee/5/api/javax/servlet/RequestDispatcher.html On Sun, May 15, 2011 at 7:00 AM, Prashant <[email protected]> wrote: > hi, > > i want to use a common servlet (say MainServlet) to handle all the requests > and based on url requested i want to transfer request to a different > servlet. for example: > if requested url is www.mydomain.com/* i want to send request to > HomeServlet and if requested url is test.mydomain.com/* i want to send > request to TestServlet. > > is it possible to transfer request from one servlet to another servlet ? > > will calling new HomeServlet().doGet() from MainServlet be same as > MainServlet (or any other servlet configured in web.xml) invocation by GAE ? > > any GAE specific solution to this ? > > > thanks in advance :) > > -- > Prashant > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" 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-appengine-java?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" 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-appengine-java?hl=en.
