Re: Struts and iBatis

2005-05-29 Thread Larry Meadors
If you want to talk live to rick, he should be back on IRC shortly - the server is irc.darkmyst.org, and you want to join the #funkycodemonkey channel. BTW, there is also a #ibatis channel where you can get help, too (same server). Larry On 5/28/05, Subbiah <[EMAIL PROTECTED]> wrote: > Hi, > I

Re: Struts and iBatis

2005-05-29 Thread James Mitchell
From another post, someone mentioned that he is on vacation. I'm sure he'll be back soon and get the tutorials back online. -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. http://www.edgetechservices.net/ 678.910.8017 AIM: jmitc

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"