Iam using Struts 1.1 beta 2 version.
I have one zipcode search page.it has search criteria fields and search results
table.
case:1
If i enter search criteria and click on reset button it works fine.
case:2
If i enter search criteria and click on search -- iam calling action where iam type
casting as like:
ZipForm form = (ZipForm) frm;
once search is performed.now if i click on reset button the search criteria values are
not resetting to null.
ActionForm looks like:
public class ZipForm extends org.apache.struts.action.DynaActionForm {
private String searchZipCodeCity;
public void reset(ActionMapping mapping, HttpServletRequest request) {
searchZipCodeCity = null;
}
}
struts-config looks like:
<form-bean name="zipform" type="com.test.ZipForm">
<form-property name="searchZipCodeCity" type="java.lang.String" />
</form-bean>
Where iam doing wrong?
Thanks,
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]