后台Action代码
List li = baseInfoTypeService.fi(assignStr, startStr,endStr, goOrg, status,code,name,itemName,createTime);
这是前台Jsp代码
<logic:notEmpty name="tzList">
<logic:iterate id="log" name="tzList">
<tr bgcolor="<%=flag ? linecolor : whitecolor%>">
<td class="table" align="center" width="10">
<input type="checkbox" name="fastId"
value="<bean:write name="log" property="id" />"
id="<bean:write name="log" property="id" />
" />
</td>
<td align="center" class="table">
&nbsp;
<bean:write name="log" property="code" />
</td>主要是想用两个表联合查询
from Trans_Info a LEFT JOIN Call_Baseinfo_V t on a.link_Id=t.IDNo getter method for property: "id" of bean: "log"
这个是报错信息。求解

解决方案 »

  1.   

    tzList 这个list里存得是什么类型的对象??
    该对象有getId 方法吗?
      

  2.   

    log对应的JavaBean对象看看id属性是否有getter方法,如果没有添加上再试试
      

  3.   

    没有给id提供get方法,找不到。
      

  4.   

    不是这个问题,主要是用hibernate多表查询,取出来的List是Object类型的。不知道如何给它指定类型啊   没有get 方法啊。
      

  5.   

    你可以另外写一个bean啊,里边声明你多表查询后要显示的所有字段,就Ok了,其实也不用全部属性都声明,继承一下你原先的bean,再添加其他字段
      

  6.   


    只要在加一个bean就行了吗?那Hql多表查询出来的是什么类型啊?前台用Struts能取到值吗?