Additional experience: 1. I defined a APB, and then the property is PJHM (p uppercase). When I access through the APB.PJHM, I do not get the data, need APB.PJHM to get Apbprocessor.query (Ticketno,function (APB) { alert (APB.PJHM); }); 1. about passing multiple parameters such as a Java function public boolean del (String spjmc,string SPJHM), how to invoke it with DWR. Var pjmc,pjhm .... Assignment Glpjztbdwrprocessor.del (pjmc,pjhm,function (BOL) { Alert (BOL); }); The parameters can be listed in sequence 2. About passing parameters to a class if the class Pjztbprocessor has a method public Object query (PJZTB obj). parameter is a class. First, we must define the class--> of the <!-method in Dwr.xml. <create creator= "new" javascript= "Glpjztbprocessor" scope= "page" > <param Name= "class" value= " Com.ticketManager.DB.PjztbProcessor "/> </create> <!-parameter Bean class--> <convert Converter= "Bean" match= "COM.TICKETMANAGER.DB.PJZTB"/> Then we define a JavaScript class function Pjztb (PZMC, PJHM,SYZT) { THIS.PZMC = PZMC; THIS.PJHM = PJHM; this.syzt = syzt; ..... Third step, instantiate such class var pz=new pjztb (); Pz.pjhm=ticketno; pz.pzmc= ' microcomputer a ticket '; The last step is to call it. glpjztbprocessor.query (pz,function (PJZTB) { alert (PJZTB.ZFZT); }); Note: At the beginning, my Pjztbprocessor method is public object obj instead of public object query (PJZTB obj). In this case, the call will quote "missing method or missing parameter Converters:glPjztbProcessor.query" error
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.