I have a simple struts applications. when I submit the form it inserts into the table and go back to the input screen. I want the html fields to be cleared. They still contain the values that i entered.
how to clear this values.i have to write like this in my formbean.
[CODE=java]public void reset(ActionMap ping mapping, HttpServletRequ est request) {
this.dscpt = null;
this.brokercd = null;
this.lname = null;
this.icno = null;
this.conttitle = null;
this.contname = null;
this.department = null;
this.addr1 = null;
this.addr2 = null;
this.addr3 = null;
this.addr4 = null;[/CODE]
how to clear this values.i have to write like this in my formbean.
[CODE=java]public void reset(ActionMap ping mapping, HttpServletRequ est request) {
this.dscpt = null;
this.brokercd = null;
this.lname = null;
this.icno = null;
this.conttitle = null;
this.contname = null;
this.department = null;
this.addr1 = null;
this.addr2 = null;
this.addr3 = null;
this.addr4 = null;[/CODE]
Comment