Hi Everybody,
I am new to
struts, I started working on a project in struts.
I have a doubt regarding how to transfer data from the FormBean to DTO.
I am following the following procedure.
I am calling a method on Business delegate by passing ActionForm Object as argument in Action class. From Business Delegate I am calling corresponding DAO to perform the busines operation which will return the result to the Action class via Business Delegate.
But my BOSS told me that Instead of passing FormBean object directly to DAO from BusinessDelegate, He asked me to create a DTO and Transfer data from FormBean to DTO, and pass that DTO to DAO.
Now the problem is I am not getting How to transfer data from FormBean to DTO.
Also let me know how to Instatiate BusinessDelegate from Action Class. and where I have to pass DTO object( whether it is from Action class to BusinessDelegate from there to DAO or from BusinessDelegate to DAO).
I think My problem is clear.
I struck up with this problem..
Please clarify my doubt and help me in doing the project.
Thanks in Advance
Regards
Yerra Reddy Gatla