Hi Mattias,
The form bean is designed for easing the coding for moving of data from action
class to HTML form vice versa.
Has any-one got a good case for doing anything else?
Keith.
--- Struts Newsgroup [EMAIL PROTECTED] wrote:
Subject: Re: Design question on loading form data
From: Vic
.
Reset() is invoked automatically by struts. Specifically you cannot detect
changes to checkboxes unless they are reset first.
- Original Message -
From: Mattias Norlander [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, January 19, 2002 8:52 AM
Subject: Design question on loading
Hello!
If i want to fill a form with data (from, say a database) before showing
it to the user: Can this be done in reset() method of the form, or should
it be in the perform() method of the action class?
I think that doing it in the reset() method produces the cleanest code.
This can be done
Subject: Re: Design question on loading form data
From: Vic Cekvenich [EMAIL PROTECTED]
===
Here is sample pseudo code illustrating for one approach in
action/perform. Call for the model bean to populate in the action's
perform. Maybe the code of that retrieval and anything else having to do
4 matches
Mail list logo