2013-10-10 72 views

回答

3

要在服务器端呼叫getTax(),请创建TaxServiceImp的实例,该实例可由getTotalWithTax(ProductDto product)访问;从那里调用该方法。

public class ProductService Impl extends XsrfProtectedServiceServlet{ 

     TaxServiceImp taxServImpInstance = new TaxServiceImp(); 

     Double getTotalWithTax(ProductDto product){ 

      TaxDto taxDtoInstance = taxServImpInstance.getTax(); 
      //process your data and return what you need 

      return myDouble; 

     } 

    }