I'm using Tomcat 3.2.3.
colName attribute fails with 'date' type of fields in DB.
As I said, getColumn works with position attribute for date type of
fields,
but fails when I use colName.
<sql:getColumn position="1" to="cur_date"/> // SUCCESSFULL
<sql:getColumn colName="cur_date" to="cur_date"/> // FAILS
Are you saying I should look under getColumnNumber method in the source?
Morgan Delagrange wrote:
>
> Which app server are you using? Tomcat? I'm looking
> at the source which matches column names to their
> position in the query, and the logic looks pretty
> simple. I'm not sure what could be causing the
> failure. It's the getColumnNumber(String) method of
> BaseGetterTag, if you are curious.
>
> - Morgan
>
> --- ranjit lingaiah <[EMAIL PROTECTED]> wrote:
> >
> > I'm using dbtags library to fetch data for my jsp
> > pages. I'm running
> > into
> > a problem where <sql:getColumn colName="cur_date"
> > to="cur_date"/> fails
> > with an error message " Could not find column named
> > cur_date"
> > Column cur_date is of type date in Oracle database.
> > I checked spelling.
> > By the way it also fails on other date type of
> > columns.
> >
> > I'm successfull in retrieving other columns which
> > are of type numeric.
> >
> > Also, same column can be retrieved using position
> > attribute.
> >
> > <sql:getColumn position="1" to="cur_date"/>
> > // SUCCESSFULL
> > <sql:getColumn colName="cur_date"
> > to="cur_date"/> // FAILS
> >
> > Any one know why this could be failing?
> >
> > thanks,
> >
> > -ranjit
> >
> >
> =====
> Morgan Delagrange
> http://jakarta.apache.org/taglibs
> http://jakarta.apache.org/commons
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/