Your myList instance variable is not initialized with the data you want to
display.
> Date: Sat, 5 Mar 2011 05:59:28 -0800
> From: shekharlaa...@gmail.com
> To: user@struts.apache.org
> Subject: display data of action class on jsp in struts2
>
>
> i m new to struts2,rest
ransaction();
> entr.begin();
> Query query=em.createQuery("select u.firstname from User u ");
> List myList=query.getResultList();
> System.out.println(myList);
> entr.commit();
> em.close();
> return new DefaultHttpHeaders("create&qu
em.close();
return new DefaultHttpHeaders("create");
}
public List getMyList(){
return myList;
}
}
[/code ]
thanks in advance
--
View this message in context:
http://old.nabble.com/display-data-of-action-c
3 matches
Mail list logo