Hi,

I usually do it within an action called to prepare a form I want to show.
Instead of forwarding to FORM_B from ACTION_A processing the input from FORM_A
I forward to ACTION_B_PREPARE setting up all FORM_B needs and then from there
go to FORM_B. I can now add the contents of the collections for the dropdowns
to the session. When I process FORM_B and realize that this form is completely
processed I can remove the specigfic objects from the session.

I know there is some reluctance against this action-to-action forwarding, but
I think it is an elegant solution to have an action per form (ACTION_B and
ACTION_B_PREPARE can be united, called from 2 different action-mappings).
I find that preparing the FORM_B-content in ACTION_A creates a dependency
that does not please me...

hope this helps
Alexander

-----Original Message-----
From: Graham Lounder [mailto:[EMAIL PROTECTED]]
Sent: Montag, 8. Juli 2002 20:47
To: Struts Users Mailing List
Subject: Using Reset to Load Drop Downs?


Hell All,

I'm having a small problem with loading my drop downs after a validation
error (since my action is not being called again).  It is recomended/good
practice to load my drop downs in the reset method of the form?  Is it
possible?  I would load them once my application starts, but I need to
modify the list before it is displayed.

Any Ideas?
Graham

============================================
  Graham Lounder
  Java Developer
  Spatial Components Division
  CARIS
  264 Rookwood Ave
  Fredericton NB E3B-2M2
  Office 506 462-4218
  Fax    506 459-3849
  [EMAIL PROTECTED]
  http://www.spatialcomponents.com
============================================


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

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

Reply via email to