<jsp:useBean id="TaxRate" scope="application" class="tax.TaxRate" />
这句话改为
<jsp:useBean id="taxRate" scope="application" class="tax.TaxRate" />
                 ~~~~~~~
不要用和类一模一样的东东作实例。

解决方案 »

  1.   

    是的,编译成java时,类名和实例名一样,当引用的时候就会产生二义性。
      

  2.   

    谢谢诸位!
    但问题还是没有解决,我将所有的id改成了小写,仍然无法使用<jsp:setProperty
    <jsp:getProperty 还是可以用,有正确的显示。
    还有劳各位费费心
    我想知道,你们有人碰到过类似的情况吗?
      

  3.   

    输出的错误的前几行如下:
    IMPORTANT: Do not modify the generated servlets
    Unhandled error! You might want to consider having an error page to report such
    errors more gracefully
    com.sun.jsp.JspException: setProperty(taxRate): Cant Find the method for setting
     {1}
      

  4.   

    public void setProduct (String Product)
    {
    this.Product=Product;
    }
    是不是要改成这样啊!