If your iterator is straight from you model (DB stuff) then you'll at least want to copy into some other structure.
ArrayList myList = new ArrayList();
YourObj yourObj = new YourObj(); Iterator it = yourObj.iterator();
while(it.hasMoreElements()) { myList.add(it.next()); }
request.setAttribute("mylist",myLIst.toArray());
On Sunday, August 3, 2003, at 09:54 AM, <[EMAIL PROTECTED]> wrote:
Hi message, I get an "broken link" error :-(
message message <[EMAIL PROTECTED]> schrieb am 03.08.2003, 09:31:21:
You may want to have a look at this page.
http://developer.novell.com/tech/1126.html.
It shows, using struts, on how to retrieve and display data from a database.
From: Reply-To: "Struts Users Mailing List" To: Struts Users Mailing List Subject: Call methods from JSTL Date: Sun, 3 Aug 2003 08:06:01 +0200
hi list, I don't manage to use methods from my classes with JSTL.
This is normal Java code: BuchKatalog bk = new BuchKatalog(); java.util.Iterator i = bk.getBuecher();
How can I achieve the same with JSTL? (tons of examples to continue afterwards, but none to this point .-()
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]