You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Subbiah <su...@utdallas.edu> on 2005/05/29 08:49:21 UTC

Struts and iBatis

Hi,
I have started working in Struts and planned to use Struts and iBatis. I
actually studied Struts thru Reumann's site and when I was abt to use iBatis
in my sample app, his site was down. I want to know 
 
- if there are any good tutorials for iBatis and Struts. 
- Any idea when the site might be up
 
Thanks.
regards,
Subbiah


Re: Struts and iBatis

Posted by Brandon Goodin <br...@gmail.com>.
I'm not really sure why you need a tutorial on Struts and iBatis.
iBatis is it's own product and should not depend on struts whatsoever.
I think your best bet is to read the ibatis documentation and the
iBatis Tutorial. I believe the Ricks tutorial is based on iBatis 1.x.
There is also the JPetstore 4 app that is based on struts. But it is
not a "standard" struts approach and may be a bit confusing. However,
the JPetStore 4 Struts takes an approach that modernizes the Struts
framework to be more like the new generation web frameworks like JSF.

http://ibatis.com/downloads.html

To give you a quick approach... The standard layerd approach is
Applications -> Service -> DAO. Application would be the layer that
would consist of Struts. The Service layer would consist of coarse
grained business logic and would contain NO knowledge of the
datasource. The DAO layer would consist of fine-grained calls to the
datasource and WOULD have knowledge of the datasource. The Service
Layer and the DAO layer should have their implementations hidden
behind interfaces. The common thread through all of these layers would
be your Domain/Model objects. The Domain objects can be seen as the
elements that each layer is concerned with. The Application Layer
displays and populates them as a result of user input. The Service
Layer operates on them as they pass through the path of your business
logic. The DAO layer transfers them to and from the datasource.

Hope that helps,
Brandon

On 5/29/05, Subbiah <su...@utdallas.edu> wrote:
> Hi,
> I have started working in Struts and planned to use Struts and iBatis. I
> actually studied Struts thru Reumann's site and when I was abt to use iBatis
> in my sample app, his site was down. I want to know
> 
> - if there are any good tutorials for iBatis and Struts.
> - Any idea when the site might be up
> 
> Thanks.
> regards,
> Subbiah
> 
>