on 5/7/2000 5:39 AM, Sean Legassick <[EMAIL PROTECTED]> wrote:

> What I'm doing for this is using business objects with a validate method.
> I pass in the RunData so it can add error messages, and validate returns
> a boolean.
> 
> So then the code in my Actions goes something like:
> 
> MyObj obj = new MyObj();
> data.getParameters().setProperties(obj);
> if (obj.validate(data))

That is very cool! That is a really good way to separate out the business
logic very easily.

-jon

--
    Java Servlet Based - Open Source  |        Collab.Net
        Bug/Issue Tracking System     |
       <http://scarab.tigris.org/>    |  <http://Collab.Net/jobs/>



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to