I have a question for ActionForm
Say I have an ActionForm with one field named "address", like this:
public class AddressForm extends ActionForm{
private
String address;
//setter and getter methods here
public void set...
public String get...
}
Initially, "address" field is null. When I use this form in
JSP to render a text field like this:
<html:text name="addressForm" property="address"/>
It actually displays html page with a ZERO length empty string like this:
<input type="text" name="address" value="">
this caused me big trouble. I don't want "value" exist because if it does I will get empty address instead null when I submit the form. I actually want to have null address, like this:
<input type="text" name="address">
Is there a way to force this in
Struts? Or I have to do it myself?
[ October 26, 2006: Message edited by: James Quinton ]