tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rahul Akolkar <rahul.akol...@gmail.com>
Subject Re: whatsup - sql:param values are mysteriously null
Date Fri, 17 Jun 2005 03:32:54 GMT
On 6/16/05, Gokhan <gokhan@mira-soft.com> wrote:
<snip/>
> ERROR: null value in column "testnumber_id" violates not-null constraint
> Because nothing inside of this lovely testnumber variable.
> If i could have type conversion error i would be really happy, but i
> have null.

I guess you've tried the simplest way?

<sql:update dataSource="jdbc/zobarenk">
  insert into test_table (testnumber_id) values (?)
  <sql:param value="${param.testnumber}"/>
</sql:update>

-Rahul

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message