I have confirmed by adding breakpoint in GreetingServlet.java that
there are two requests handled by this class. First one renders the
form and as the first time username field value is null it does not
include the ResponseServlet output in the response. Second time as
value of username parameter is not null reponse gets included.

On Feb 4, 3:29 am, Artashes Hovasapyan <artashes.hovasap...@gmail.com>
wrote:
> Request object's scope is single request, i.e. it is visible to all
> components that take part in processing of the request.
>
> --
> Regards,
> Artashes Hovasapyan
>
> On Wed, Feb 4, 2009 at 1:15 AM, supriya.kh...@gmail.com <
>
> supriya.kh...@gmail.com> wrote:
>
> > I have query about GreetingServlet of hello2 project. It seems like
> > that code in doGet() method is rendering the form for input, as well
> > as it is validating it and forwarding it to ResponseServlet(). Whether
> > the code for form rendering as well as validation get executed in one
> > request or it is two requests, I am bit confused!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to