On Mon, 17 Dec 2001, Johann Herunter wrote:

> Date: Mon, 17 Dec 2001 10:22:32 +0100
> From: Johann Herunter <[EMAIL PROTECTED]>
> Reply-To: Struts Developers List <[EMAIL PROTECTED]>,
>      [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: ActionServlet behavior
>
> Hey all
>
> I am relativ new to struts but need a special behavior:
>
> When having more FormBeans on the same jsp-page and you change the
> value of one form bean, the values of the other change too or will be
> reset. I need the behavior that when the value of one form bean is
> changed, the other must remain unchanged. For this purpose i changed
> the source-code of the ActionServlet so that it is now able
>
> for this task. We can have as many form beans as needed and, e.g. when
> i change the
>
> value of one form bean via textfield, the other form beans have still
> the same values.
>
> The corresponding Action will be called via extension tags.
>
> My Question is:
>
> Is it planned or needed that struts can fullfil such a task? Are there
> any Activities for implementing such a behavior, via Special Form Tags
> or other methods?
>
> if someone knows about such a feature or wether there are plans for that,
> any answer is welcome
>

If you use session-scoped beans, the state of the forms you didn't submit
is maintained -- but only as of the last time that form *was* submitted.
Any changes you make on the client in one form are still not sent when you
update another -- thanks to the way HTML forms work.

I would be interested in seeing exactly what changes you made to deal with
this -- if the changes are consistent with the Struts design philosophy
for web apps, I'd be interested in including this in the standard packge.

> Sincerly
>
> Johann Herunter

Craig McClanahan



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

Reply via email to