Hi everyone,
I have a question and I hope somebody can help me out here. Well, I'm developing an application with Struts 1.3.10 and I have a struts form with an object that contains a property. That property is declared as the primitive type int
and the problem comes when the app shows to the user zeroes(0) instead of nothing when I retrieve that data from the database and turns out to be NULL. Have any of you experienced this problem? How do you guys do to avoid that kind of behaviour?
The only thing it came to my mind was to turn that int
into a String
object, but that implies some casting and/or other operations when you have to insert/retrieve/update data into/from the database.
Any help with this? Thanks in advance, Carlos