I am trying to insert the 'input' tag programatically. And want the field to have null or constant value. Lets take the example of 1. I want something like- <input name= "ONE" type="hidden" value="1"/> for value="1" this part, I am passing 1 and want it to be the value of ONE as it is. Tina
Alongwith being a good coder, try to be a good professional as well!
Ah, I think I see. You want to be able to make it so that you get a Java null from the input field in some circumstances? If so, the only way to accomplish that is to omit the input field completely. There is no way to set a value in the "value" attribute that will turn into a Java null. The empty string is as close as you can get. hth, bear