Look at the @Param annotation. If you pass more than one parameter to a mapper method, them you must annotate ALL parameters:
List<Map> selectAllFromTable(@Param("rowBounds") RowBounds rowBounds, @Param("tableName") String tableName); Whenever I forget to do this, I see errors about NULL values. Jeff Butler On Mon, Feb 8, 2010 at 4:57 PM, Tom Carchrae <carch...@gmail.com> wrote: > > > > nmaves wrote: >> >> I would double check that you are not sending in null as the table name. >> > > I am passing in a non-null string. But it is definitely a problem caused by > the table name not being mapped correctly. > > When i traced down inside the bowels of iBatis, it gobbles my string inside > > TextSqlNode.java:38 > > Object value = Ognl.getValue(content, context.getBindings()); > > Up to this point, it's all looking so good. Figuring out what is going on > inside the OgnlParser is, well, a touch intimidating. > > Tom > > > -- > View this message in context: > http://old.nabble.com/table-name-as-parameter-tp27505213p27507728.html > Sent from the iBATIS - User - Java mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org > For additional commands, e-mail: user-java-h...@ibatis.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-java-h...@ibatis.apache.org