Re: Struts and iBatis

2005-05-29 Thread Larry Meadors
; 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. >

Re: Struts and iBatis

2005-05-29 Thread James Mitchell
0.8017 AIM: jmitchtx Yahoo: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: "Subbiah" <[EMAIL PROTECTED]> To: Sent: Sunday, May 29, 2005 1:36 AM Subject: Struts and iBatis Hi, I have started working in Struts and planned to use Struts and iBatis. I ac

Struts and iBatis

2005-05-28 Thread Subbiah
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

Re: Struts and iBATIS

2005-02-21 Thread Richard Yee
Tim, If you are using Tomcat, you would set up a resource in the server.xml . . . and in your web.xml you would have a resource-ref tag like this: DB Connection jdbc/TestDB javax.sql.DataSource Container -Richard At 02:08 PM 2/21/2005, you wrote: Cheers for the advice

Re: Struts and iBATIS

2005-02-21 Thread Richard Yee
Tim, I think that depends on which application server you are using. In my case, I'm using Oracle's OC4J. It uses a file called datasources.xml to define datasources. In Resin, the datasource is defined in the web.xml file using the element. What app server are you using? -Richard I have the d

Re: Struts and iBATIS

2005-02-21 Thread Tim Christopher
Cheers for the advice. I've decided I'm going to start again with iBATIS and try to follow the jPetStore example to get it to work (instead of the one at http://www.reumann.net/struts/ibatisLesson1/step1.do)... I just have a quick question about your reply though: >> Where abouts should the da

Re: Struts and iBATIS

2005-02-21 Thread Richard Yee
Tim, Without seeing the entire sqlMapConfig.xml it's going to be hard for anyone to figure out exactly what the problem is. You can get more direct help by posting at [EMAIL PROTECTED] I think you also need a DataSource property in your transactionManager. This is what I use. I don't set DBInit

Re: Struts and iBATIS

2005-02-21 Thread Tim Christopher
Here's an extract from my sql config file: ### INSERT INTO tbl_Module ( module_id, module_credits, module_semester, module_level, module_description ) VALUES ( #id#, #credits#, #semester#, #year#, #description# ) ### I've tried a few variations of this, for e

Re: Struts and iBATIS

2005-02-20 Thread Larry Meadors
The code there is: === MappedStatement ms = (MappedStatement) mappedStatements.get(id); if (ms == null) { throw new SqlMapException("There is no statement named " + id + " in this SqlMap."); } return ms; === Looks like you have a sqlmap, but that the statement "insertModule"

Struts and iBATIS

2005-02-20 Thread Tim Christopher
Hi, I'm in the middle of incorporating iBATIS into my Struts project, but am having slight trouble in getting it to work. The problem starts when I call sqlMap.startTransaction() from within my BaseDAO file as I get a null pointer exception... Yet when I print out the value of sqlMap I get somet