HI,

>From the description of your needs, it seems that the Java inheritance
mechanism is all what you need.

Yours servlets should all inherit from HomeServlet, in their doGet()
method, they will just call super.doGet() at the beginning and then
execute their own thing.

regards

didier

On May 15, 2:00 pm, 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 iswww.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.

Reply via email to