This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I have a form which has Id field text boxes I had to declare them as long in my form bean because database will store values long data type but in db those are integer type. here my problem is when the id fields are empty you submit the page you will get '0' instead of null so finally database will be updated with '0' but I want to update it as null.