Hi Friends,
I developed login form in
struts.
In this form i have 2 fields.
<tr class="table_row">
<td>
<bean:message key="label.login" />
</td>
<td>
<html:select property="district" styleId="dist" >
<option value="0"> --Select District--</option>
</html:select> </td>
</tr>
<tr class="table_row">
<td>
<bean:message key="label.password" />
</td>
<td>
<html:text property="password">
</html:text> </td>
</tr>
the Login values are dynamically loaded using ajax in district select box.
Related form bean is as LoginForm , in validate method
if(getPassword().equals(""))
{
errors.add(null,new ActionError("error.password.missing"));
//System.out.println("am h ere"+getMonth());
}
Its giving the error message properly.
But my old value in select box does not retained.
How to retain my old value in select box.
thanks