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



2 comments
Ibatis Tutorial - Sample Application Step 2 - Golmuri says:
August 17, 2008 at 4:59 pm (UTC 5.5)
[...] 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:
0
0
Sethu says:
February 12, 2009 at 10:45 pm (UTC 5.5)
is it struts-config.xml or SqlMapConfig.xml?
Like or Dislike:
3
1