Struts Form Reset方法
其實還是挺糊涂的,org.apache.struts.action.ActionForm的Reset()方法,不過知道可以在該方法中set該Form的一些屬性值,就能夠在頁面上顯示為該對應控件的默認值,比較方便。

public void reset(ActionMapping mapping, HttpServletRequest request)
{
//set default value for the first display
this.setType("0");
}






posted on 2007-08-23 14:55 cerulean 閱讀(1264) 評論(0) 編輯 收藏 所屬分類: Java 、web