Ed,

I'm not sure I understand your question exactly, but I'll answer the best I
can.

The only information that is sent to the client is the HTML that you see in
the browser.  The JSP gets converted to a servlet and the servlet just
writes to the HTTPResponse, not the HTTPRequest.  The "request" you are
referring to is gone once the server sends a response.  The JSP that builds
the form can make use of as much data as is in the request, as it is all
stored on the server side as you said.

The new ActionForm the that is created after the user submits the form, from
the HTTPRequest that the client's brower created, is indeed new and does not
have access to any previously submitted client values unless they are 1.
Persisted in some persistent storage 2. persisted in the user's HTTPSession,
or 3. we included in the JSP as hidden fields (and presumably also the new
action form).

Does that help answer your question?

-Rob


-----Original Message-----
From: Ed Tornick [mailto:[EMAIL PROTECTED] 
Sent: Sunday, March 14, 2004 3:32 PM
To: [EMAIL PROTECTED]
Subject: Fundamental Struts Concept

Let's assume you have a Action Form with much data, including lists (you are
using nested tags for example). When you create the Action Form you load it
up with the data from your data source wherever it is. Let's also assume
that you have set the action path in the configuration file so that the
scope of this form is request.

If the jsp on the server that is going to create your form on the client has
only a few of the fields from the Action Form then how much data is actually
sent to the client in the httpRequest?

The reason I ask is that since it is my understanding that either a new
Action Form is created when the user submits the form or if one already
exists it is "reset",  how can the Action Form have all of the original
data, including the one or 2 fields the user just submitted?

If the scope was session then it would make sense to me that the data would
still be on the server and the users input would just modify a few fields..
but when it is request scope...This is what I don't understand. 

As you can see, probably a very fundamental question but it is key to me
understanding what is going on.

Thanks in advance for your input..
Ed


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to