Re: empty fields of an input form get default value after submitting

2006-09-14 Thread Scott Van Wart
Laurie Harper wrote: Sandra Reichert wrote: Hi, I have an input form in jsp. After submitting empty fields (user entered nothing in input field) are set by default with specific values depending on their data typ. So an empty Integer field is set to 0, an String field to "" an so on. But i wan

Re: empty fields of an input form get default value after submitting

2006-09-14 Thread Laurie Harper
Sandra Reichert wrote: Hi, I have an input form in jsp. After submitting empty fields (user entered nothing in input field) are set by default with specific values depending on their data typ. So an empty Integer field is set to 0, an String field to "" an so on. But i want to have a null value

RE: empty fields of an input form get default value after submitting

2006-09-13 Thread Anil Kumar T
Hi, Since 0 would be the default value for primitive int, you cant do any thing over there. But if you are using Integer object then youc an get null. In the formBean you would have instantiated the fields globally. Check that. Ex : String s = ""; or String s = new String("") ; If so then you go