Handling DisplayTag pagination in Controller - using ibatis cached data

2007-05-17 Thread Osborn Tamara I Contractor 10 CS/SCA
I am working with Spring MVC (ver 2.0.5) and iBATIS. I have a simple JSP page with a displayTag table which is rendered by a Controller. My iBATIS query results are cached. I found that each time I change the "page" for the displayTag table, the cached data is re-added to my model so that my num

Re: Spring & iBatis question

2007-05-17 Thread rusty
For starters you'll need to study the spring docs on AOP. > Thank you a lot Ashok. I will try. > > > 2007/5/17, Ashok Madhavan <[EMAIL PROTECTED]>: >> >> Hi Sergey, >> >> If you are using Spring + iBatis, you can go with Declarative >> transaction >> supprt provided by spring. Then u dont need to

Re: Spring & iBatis question

2007-05-17 Thread Sergey Livanov
Thank you a lot Ashok. I will try. 2007/5/17, Ashok Madhavan <[EMAIL PROTECTED]>: Hi Sergey, If you are using Spring + iBatis, you can go with Declarative transaction supprt provided by spring. Then u dont need to do any of the startTransaction() or endTransaction().

RE: Trying to upgrade iBatis

2007-05-17 Thread Tom Henricksen
I apologize this error is happening on the line after the one I mentioned. Here is the code. singleton = SqlMapClientBuilder.buildSqlMapClient(reader); Thanks, Tom -Original Message- From: Tom Henricksen [mailto:[EMAIL PROTECTED] Sent: Thursday, May 17, 2007 10:45 AM To: user

Re: Spring & iBatis question

2007-05-17 Thread Ashok Madhavan
Hi Sergey, If you are using Spring + iBatis, you can go with Declarative transaction supprt provided by spring. Then u dont need to do any of the startTransaction() or endTransaction(). add*=PROPAGATION_REQUIRED insert*=PROPAGATION_REQUIRED

Re: Spring & iBatis question

2007-05-17 Thread Sergey Livanov
Mark, thank you a lot for answer. I want to do something like try{ sqlMap.startTransaction() ; sqlMap.insertHeader( headerbean ); sqlMap.insertItems( ListOfItems) ; sqlMapcommitTransaction() ; } finally { sqlMap.endTransaction() ; } 2007/5/17, Mark Volkmann <[EMAIL PROTECTED]>:

Trying to upgrade iBatis

2007-05-17 Thread Tom Henricksen
We are currently using iBatis 2.0.9( I know we are a little behind). I would like to get to the current version(2.3.0). I have tried 2.0.9b and 2.1.5 and get the following exception com.ibatis.common.exception.NestedRuntimeException: Error occurred. Cause: com.ibatis.common.xml.NodeletExcepti

Re: Spring & iBatis question

2007-05-17 Thread Mark Volkmann
On May 17, 2007, at 10:34 AM, Sergey Livanov wrote: I use Spring Dao + iBatis and I have to run into the one transaction inserts order document. ( insert into header values( docpk, docnum, docdate, client ) and many inserts as insert into( docfk, itempk, good, price, quantity ). I do not know h

Spring & iBatis question

2007-05-17 Thread Sergey Livanov
I use Spring Dao + iBatis and I have to run into the one transaction inserts order document. ( insert into header values( docpk, docnum, docdate, client ) and many inserts as insert into( docfk, itempk, good, price, quantity ). I do not know how to create one transaction in the case of spring da

RE: Conditional joins?

2007-05-17 Thread Meindert
I'm doing it by checking the Foreign Key value and the use of If I don't want to join I set the Foreign Key value to null And in the statement SELECT {Fields from the joined table} FROM maintable JOIN ... Kind Regards Meindert -Original Message- From: Matthias Karlss

Conditional joins?

2007-05-17 Thread Matthias Karlsson
Hi, I'm currently evaluating frameworks for writing DAO layers for future projects, replacing a custom one I previously wrote. The current one works well, but it needs much more work. Long story short, it relies on being able to retrieve values using table aliases in the ResultSet::getXXX-methods,

RE: Setting username and password credentials for JNDI datasource

2007-05-17 Thread russengel
Right now, I just have the basic configuration going on, and am applying the credentials to the connection later, so my SqlMapClient creation isn't anything special. My SqlMapConfig.xml contains the following: And I'm

RE: NoClassDefFoundError for class Resources

2007-05-17 Thread Steve Wooten
Thanks Chris! That did it. I added ibatis-sqlmap-2.3.0.jar To my application.xml file. -Original Message- From: Chris Lamey [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 16, 2007 5:14 PM To: user-java@ibatis.apache.org Subject: RE: NoClassDefFoundError for class Resources