2004.12.14 This is the problem that the Elearning project was discovered yesterday, and the corresponding type of Numberic type

xiaoxiao2021-03-06  49

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"); .......}

转载请注明原文地址:https://www.9cbs.com/read-81062.html

New Post(0)