Perhaps the version you are working with does not have that in the jar.

I have exclusively used List instead of Collection.  So, I'm not sure how DT 
treats Collection.

Sorry I haven't been any help.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christian Stalp
Sent: Wednesday, February 28, 2007 5:20 PM
To: displaytag-user@lists.sourceforge.net
Subject: Re: [displaytag-user] filling a table from a collection

No I just use the usual displaytaglib:
<%@ taglib uri="http://displaytag.sf.net"; prefix="display" %>
Do I need another lib for that?
However I changed it in:
<%@ taglib uri="http://displaytag.sf.net/el"; prefix="display" %>
and got en exception:
Exception in JSP: /CreateBankAnswer.jsp:26 23: out.println("Bank: " + bankname 
+ " was subscribed" ); 24: out.println("Table of subscibed banks: "); 25: 
Collection bankCollection = (Collection) request.getAttribute("bankliste");%> 
26: 27: 28: 29: Stacktrace:

Typ:
org.apache.jasper.JasperException 

...weird
Did I missed something?

Gruss Christian

-------- Original-Nachricht --------
Datum: Wed, 28 Feb 2007 17:04:19 -0700
Von: "Horan, Jeff" <[EMAIL PROTECTED]>
An: displaytag-user@lists.sourceforge.net
CC: 
Betreff: Re: [displaytag-user] filling a table from a collection

> Are you using displaytag-el?
> <%@ taglib prefix="display" uri="http://displaytag.sf.net/el"%> 
> 
> If not, try it with the pageScope.
> 
> I just hit myself in the head for the second time (for not remembering
> that I solved this problem once before) because of the very same thing (I
> appeared to be doing everything right but saw no results) except I am using
> struts and have my forms set for session.
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Christian Stalp
> Sent: Wednesday, February 28, 2007 4:40 PM
> To: displaytag-user@lists.sourceforge.net
> Subject: Re: [displaytag-user] filling a table from a collection
> 
> No, that doesn't work, same result. But thank you for the fast response.
> 
> Gruss Christian
> 
> >Try <display:table name="pageScope.bankCollection" ...
> 
> -----Original Message-----
> >>From: [EMAIL PROTECTED]
> >>[mailto:[EMAIL PROTECTED] On Behalf >>Of Christian Stalp
> >>Sent: Wednesday, February 28, 2007 4:26 PM
> >>To: displaytag-user@lists.sourceforge.net
> >>Subject: [displaytag-user] filling a table from a collection
> 
> >>Hello out there,
> >>I just want to ask the best way for filling a table using the data of a
> collection. My attempt was:
> 
> >>bankname = request.getParameter("bankname");
> >>    out.println("Bank: " + bankname + " was subscribed" );
> >>    out.println("Table of subscibed banks: ");
> 
> >>    Collection bankCollection = (Collection)
> >>request.getAttribute("bankliste");%>
> >>    <display:table name="bankCollection" class="dataTable"
> pagesize="10">
> >>      <display:setProperty name="basic.msg.empty_list" value="No  banks
> were found!"/>
> >>      <display:column property="banknr" sortable="true"/>
> >>      <display:column property="blz" sortable="true" />
> >>      <display:column property="bankname" sortable="true" />
> >>  </display:table>
> 
> >>But the result is only "no banks were found". How can I connect >>this
> collection with the taglib?
> 
> >>Thank you
> 
> >>Gruss Christian
> 
> 
> -- 
> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
> Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> displaytag-user mailing list
> displaytag-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> displaytag-user mailing list
> displaytag-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/displaytag-user

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to