首先在Action类中把你要输出的list定义成一个属性、并先成set、get方法如:Action类 private List contentList ;public List getContentList()