postgreSQL数据库里面的numberic类型在JAVA中的相应类型为BigDecimal。
java.math.BigDecimal;
<HTML:RADIO>用法:
第一种方法:
你在Aform中的reset方法中为其赋值。
public class AActionForm extends ActionForm {
private String usertype;
public void setUsertype(String usertype){
this.usertype=usertype;
}
public String getUsertype(){
return this.usertype;
}
public void reset(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {
usertype= "P";//在此处为属性扶植
}
}
第二种方法:
public class AAction extends Action
{
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) throws
NWException
{
AActionForm aForm = (AActionForm) form;
aForm.setUsertype("p");
.......
}