struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dderry" <dde...@acm.org>
Subject Re: Request scope question again...
Date Mon, 25 Feb 2002 03:41:05 GMT
Yes. As I understand it, as long as the Action classes are performing
forwards rather than redirects it will all be handled on the server side in
the same request. It is only when a response is returned to the browser that
the request will be ended. On the other hand, if a redirect is performed,
that is done by sending a response to the browser which somehow tells tells
the browser to request a different page. I don't know how this works
exactly, could be a header, but I really don't know.

The thing to keep in mind though is that a 'request' consists of the browser
requesting a resource from the server, and the server responding back to the
browser. Whatever happens on the server, no matter how many resources or
Actions process that request, it is all the same request until the response
is returned to the browser.

Glad to be able to help.

Dave D
----- Original Message -----
From: <theron.kousek@webmd.net>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
Cc: <struts-user@jakarta.apache.org>
Sent: Sunday, February 24, 2002 3:57 PM
Subject: Re: Request scope question again...


>
> Hi Dave:
>
> thanks so much.   This is helping.   I "think" I know the answer to this
> question but can you verify this with me:
>
> - Based on what you said:
> > Request scope changes when the browser makes a request of the server.
>
> Does this mean that "invoking an http request to bring up a JSP page or
> HTML page will start a brand new request?".   And if the entry point JSP
> page (say http://localhost:8080/test/login.jsp) calls actions (that can
> "forward to other jsp pages") that call other actions (that can "forward
to
> other jsp pages") that call other actions (that can "forward to other jsp
> pages") and so forth, that all of those actions (regardless of how many
JSP
> pages were brought up in those actions "ActionForward" mappings) are all a
> part of the same request (which could have been something like
> http://localhost:8080/test/login.jsp)
>
> thanks so much,
> Theron
>
>
>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message