Well, I decided to pick up "Struts in Action", and, as luck would have it, the book contains a nifty solution on handling resets in session scoped beans.
[EMAIL PROTECTED]
05/24/2004 03:56 PM
|
|
I've decided to go the route of a session scoped form bean but now I have the interesting problem of myForm.reset() being called with each submission.
So, I'm curious. What's the use of a session scoped bean if it gets reset before it's passed to an action? Or, am I missing something?
Thanks,
Dennis
Paul McCulloch <[EMAIL PROTECTED]>
05/21/2004 04:55 AM
|
|
Consider using a session scoped form bean. That way you don't need to worry
about using <html:hidden>s to remember the value from previous steps.
Another option would be to have your JSP always render the entire page, but
you use styles to hide the bits that aren't part of the current step.
Paul
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: 20 May 2004 18:21
To: Struts Users Mailing List
Subject: Wizards, multiboxes, and hidden forms, oh my!
All,
I have a simple wizard comprising 3 steps, 1 action, 1 form, and 1 JSP. The
JSP uses <html:hidden> to segregate the 3 steps of the wizard on the single
jsp. My problem is that step 1 contains a multibox, and I am unsure of the
best way to pass the multibox values to steps 2 and 3...to be eventually
processed after step.
A simple pointer to any dialogue on this topic should suffice, if it exists.
Thanks,
Dennis
**********************************************************************
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused.
**********************************************************************
---------------------------------------------------------------------
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]