jsp页面获取不到action中的值了

action

  //查询所有客户
    public String list() {

        CustomerService service = new CustomerService();
        List<Customer> list = service.findAll();

        for (Customer customer : list) {
            System.out.println(customer.getCname());
        }
//        ActionContext.getContext().getSession().put("list", list);
        System.out.println("CustomerAction :" + list.toString());
        return "listSuccess";
    }

输出语句会输出语句,jsp页面

 <s:iterator value="list" status="status">
        <tr>
            <td><s:property value="#status.count" />
            </td>
            <td><s:property value="cname" />
            </td>
            <td><s:property value="age" />
            </td>
        </tr>
    </s:iterator>

根据result的结果通过xml配置文件跳转可以到这个页面,但是获取不到值,有大神指点一下吗?

Action
ActionContext.getContext().put("list", list);
页面

 <s:iterator value="list" status="status" var="qd">
        <tr>
            <td><s:property value="#status.count" />
            </td>
            <td><s:property value="#qd.cname" />
            </td>
            <td><s:property value="#qd.age" />
            </td>
        </tr>
    </s:iterator>

http://blog.csdn.net/gslzydwgh/article/details/54803245
这里有个完整的文章

你的list属性在action中没有get()方法

如果问题得到解决,麻烦点下我回答右边的采纳,谢谢

你的list属性在action中没有get()方法。。。。。

你的list属性在action中没有get/set方法