Struts2アクションクラスが1つあります
のゲッター/セッターがいますjava.util.List list;
ジェネリック型はわかりませんList<?> list;
私はここにコードを持っています:
 public class Test
 {
    private List list;
    public List getList() {
        return list;
    }
    public void setList(List list) {
        this.list = list;
    }
    public String execute()throws Exception
    {
       for(int i=0;i<list.size();i++)
       {
           //how can print here list
           // in this situation i have List<Detail> list
           // filed is id ,username,password
           // but i want to print dynamically get class name and then filed name and then print list
       }
    }
 }