Depends on your calculations.

I wouldn't do anything more than confirm proper data types
with validation - required fields are provided and of the
right type, etc.

If it is a trivial calculation that isn't used anywhere else,
then  you could do it in your Action's execute(),

but if it is a reusable calculation like loan payment
amount given a principal and number of months, etc.,
it sounds more like reusable business logic that should
be in a model object called by your Action's execute.

-jeff

On Wednesday, September 10, 2003, at 04:32 AM, Rouven Gehm wrote:

Hi,

well i just wonder, in which class i should do my calculations.
E.g. :
 I have a JSP, where i have a form for input values, and output values.
Now i can do the math within the validate Method of the according
ActionForm, or i do it in the execute Method of the Action where i have
access to the form too.
Or is there a third way, to do it ?

Esp. whats the best way, if i have to get values from various ActionForms
for my calculations ?


Thanx

Rouven


--------------------------------------------------------------------- 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