The corresponding type of Numberic type in the PostgreSQL database in Java is BigDecimal.
Java.math.bigDecimal;
Usage:
the first method:
You assign it in the reset method in the AFORM. 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"; / / here is attribute to support}}}
The second method: public class AAction extends Action {public ActionForward execute (ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throwsNWException {AActionForm aForm = (AActionForm) form;
AFORM.SETUSERTYPE ("P"); .......}