What attribute did you set the form to be stored under?
If none will default to form name. You are storing under same attribute key
yes?
Both actions mapping also defined the scope to be session?

-----Original Message-----
From: Betty Koon [mailto:[EMAIL PROTECTED]
Sent: Friday, 27 February 2004 14:51
To: 'Struts Users Mailing List'
Subject: RE: Problem with loss form (session scope)


In struts config's action definition, I set up the action to use a form in
session scope.  What I found out was, somehow the form constructor get
called the 2nd time the action get called.  To my understanding, if you set
up the form in session, the form will only get created once.  Any idea?

-Betty

-----Original Message-----
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 9:06 PM
To: Struts Users Mailing List
Subject: Re: Problem with loss form (session scope)


Without seeing your jsp/struts-config.xml/action its a bit of a guessing
game.

I'm a bit confused by you saying "...at this point, I set up this form bean
as session scope". To me this implies your getting a form not in session
scope (i.e. request) and saving it yourself in session scope. If that is the
case - then maybe thats your problem - if the struts-config.xml says its
request, thats where struts will look for it and, if it doesn't exist, it'll
set a new one up in  request scope (even if you already have one under the
same name in session).

If I've got it wrong, then maybe you could explain further. I'm also not
clear whether your finding out your form has been 'wiped' as soon as you get
into your action and before you "set it up as session scope" or after that
when you get to your detail screen. Could you clarify that as well please.


Niall
----- Original Message -----
From: "Betty Koon" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, February 27, 2004 3:41 AM
Subject: RE: Problem with loss form (session scope)


> Well, sorry for being vague.  It's a very vague problem, that's why
> it's very difficult to explain the details.  This only happen to one
> of my action.  I had a list inside a form.  And one of the column
> render a link
to
> the detail page.  But I need to do some processing before I redirect
> to
the
> detail.  So I wrote the link to do a form post it back to the caller
action.
> In that case, I can collect some information, at this point, I set up
> this form bean as session scope.  But everytime the post happened, it
> seems
like
> the form content got wiped out.
>
> -Betty



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


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



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

Reply via email to