exception:org.apache.jasper.JasperException: No getter method for property drugCode of bean BscInfo你的BscInfo类中有方法getDrugCode,getDrugName吗?加上吧

解决方案 »

  1.   

    ArrayList bscInfos = new ArrayList();
    bscInfos应作为bean的属性
      

  2.   

    当然有getDrugCode和getDrugName,所以我搞不懂怎么回事
      

  3.   

    我已经解决了,把JSP改一下就行了:
    …………………………………………
    <table width="100%" border="1">
        <tr bgcolor="#666666">
           <th>aaa</th>
           <th>bbb</th>
        </tr>
        <logic:iterate id="Info" name="BscInfo">
        <tr align="left">
           <td><bean:write name="Info" property="drugCode"/></td>
           <td><bean:write name="Info" property="drugName"/></td>
        </tr>
        </logic:iterate>
    </table><br><hr>
    …………………………………………