chamal desilva wrote:
> Hi,
>
> I read few articles on struts. They recommend not to
> send action form class to EJBs as data holders. They
> recommend we should use general classes for holding
> data to decople web tier with EJBs.
>   
That's right.
> What they say must be correct but I still have few
> doubts (Maybe b'cause I am not experienced).
>
> Don't we have to modify two classes, if we use both
> ActionForms and normal java classes to store data.For
> example we will have modify two classes to add a new
> attribute, remove attribute etc.
>
>   
You will use a Data Transfer Object (or Value Object as some called) to
wrap the data from your form bean, and send to the EJB and vice versa.
Then the EJB layer wont depend on the form bean (view layer). That's
best practices.
> Please help me to understand this more clearly.
>
> Thanking You,
> Chamal.
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
>
> ---------------------------------------------------------------------
> 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