make sure your model class, and the getters and setters are public.
umeshawasthi wrote:
>
> Hi all,
>
> i am trying to use display tag in my struts2 application i have imported
> all the dependecies required for dispay tag
>
> what i am trying to do is that i have to display the data in the table it
> has only two columns. i have an action which retrieve the requested data
> from the database and will put the data in to the bean object
> from my action i am putting this bean object in to the session
>
> itemCodeList=newConnection.AddItemCode(getICode(),getIName());
> Map<String, ArrayList<ItemTypeBean>> session =
> ActionContext.getContext().getSession();
> session.put("itemCodeList", itemCodeList);
> now i m trying to retrieve the values stored in to the bean object using
> display tag below is the code i m using to retrieving the vales from the
> beans.
>
> <display1:table name="sessionScope.itemCodeList" pagesize="2"
> export="true" requestURI="">
> <display1:column property="TypeCode" sortable="true" title="Item Code"/>
> <display1:column property="TypeName" sortable="true" title="Item Name"
> ></display1:column>
> </display1:table>
>
> but it is giving me the following two exceptions
>
> Unknown property 'TypeCode'
> TypeCode
>
> which is the name of my bean getter method..
> any help in this regard will be much appriited
>
--
View this message in context:
http://www.nabble.com/Display-tag-and-struts2-tp16521065p19658512.html
Sent from the DisplayTag - General mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user