[EMAIL PROTECTED] wrote the following on 9/21/2004 11:51 AM:

Take a look at the Spring framework - it helps use POJO's rather than EJB's

I think everyone is making this more difficult than it needs to be. I think as start just have your actions call some delegate or service class or whatever the patterns flavor of the week is calling these thing ( I admit I get confused by all of them :), but anyway something like...


//in your action:

//covnert you form data into a value object (BeanUtils makes it easy - most of the time:)

serviceObject.updateEmployee( employeeValueObject )

Then in your serviceObject do whatever business you want... Daos with JDBC, iBatis, hibernate, EJBs, whatever. The point is you can swap out that implmentation at any time and not effect what Struts is doing.

--
Rick

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



Reply via email to