Print This Post

«

»

Aug
08

Ibatis Tutorial – Sample Application Step 3

Step 3: Create struts-config.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMapConfig
PUBLIC “-//ibatis.apache.org//DTD SQL Map Config 2.0//EN”
“http://ibatis.apache.org/dtd/sql-map-config-2.dtd”>
<sqlMapConfig>
<transactionManager type=”JDBC”>
<dataSource type=”SIMPLE”>
<property name=”JDBC.Driver” value=”com.mysql.jdbc.Driver”/>
<property name=”JDBC.ConnectionURL”
value=”jdbc:mysql://localhost:3306/employeedb”/>
<property name=”JDBC.Username” value=”root”/>
<property name=”JDBC.Password” value=”"/>
</dataSource>
</transactionManager>
<sqlMap resource=”com/Employee.xml”/>
</sqlMapConfig>

Also Read : IBatis vs Hibernate ? Which one to choose?
IBatis Tutorial – Sample Application Step 4
Introduction to IBatis Tutorial -Part 1

Related Posts with Thumbnails

2 comments

  1. Ibatis Tutorial - Sample Application Step 2 - Golmuri says:

    [...] Read : IBatis vs Hibernate ? Which one to choose? IBatis Tutorial – Sample Application Step 3 Introduction to IBatis Tutorial -Part 1 Share and [...]

    Like or Dislike: Thumb up 0 Thumb down 0

  2. Sethu says:

    is it struts-config.xml or SqlMapConfig.xml?

    Like or Dislike: Thumb up 3 Thumb down 1

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>