Sandra, I think you should reference the attribute that you put on the
session ("calls" instead of "callslist"). The correct syntax for your table
tag would be:
<display:table border="0" pagesize="3" cellspacing="0"
cellpadding="0" list="calls" scope="session">
I hope this helps...
Scott
-----Original Message-----
From: Heligon Sandra [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 4:53 AM
To: '[EMAIL PROTECTED]'
Subject: [displaytag-user] Problem to display Collection with Display
tag
Importance: High
I have a Struts application and I am trying to use display tag but
it doesn't work.
Populate action:
public ActionForward executeAction(ActionMapping mapping, ActionForm
form, HttpServletRequest request, HttpServletResponse response)
{
// Get the session object where user infomration are saved
HttpSession session = request.getSession();
Collection callslist = new ArrayList();
CallBean call1 = new CallBean(1,"toto","France");
callslist.add( call1);
CallBean call2 = new CallBean(2,"tata","France");
callslist.add( call2);
session.setAttribute("calls", callslist);
}
JSP page:
<display:table border="0" pagesize="3" cellspacing="0"
cellpadding="0" list="callslist" scope="session">
<display:column property="id" title="ID" />
<display:column property="country" title="Countrry"/>
</display:table>
When I display the page I have the following error: The bean that
you gave me is not a Collection I understand: callslist'
What is the good syntax ?
-----------------------------------------------------------
As of February 12, 2003 Thomson unifies its email addresses on a worldwide
basis.Please note my new email address: [EMAIL PROTECTED]
Thomson is the leader in solutions and technologies for the entertainment
and media industries and serves its customers under its four strategic
brands: Technicolor, Grass Valley, RCA and THOMSON.
More about Thomson: http://www.thomson.net/videochain
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user