Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@jakarta.apache.org Received: (qmail 79948 invoked by uid 500); 22 Aug 2001 07:49:34 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: struts-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 79939 invoked from network); 22 Aug 2001 07:49:34 -0000 Received: from ns.sat1.de (HELO fire-3.sat1.de) (212.184.173.3) by h31.sny.collab.net with SMTP; 22 Aug 2001 07:49:34 -0000 Received: (from root@localhost) by fire-3.sat1.de (8.9.3/8.9.3) id JAA12625 for ; Wed, 22 Aug 2001 09:49:40 +0200 Received: from mail-owa.sat1.de(10.1.3.53) by fire-3.sat1.de via smap (V2.1) id xma012613; Wed, 22 Aug 01 09:49:12 +0200 Received: from groupwise.sat1.de (groupwise.sat1.de [10.1.0.106]) by mail-owa.sat1.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with SMTP id JAA08278 for ; Wed, 22 Aug 2001 09:49:12 +0200 Received: from BERLIN-Message_Server by groupwise.sat1.de with Novell_GroupWise; Wed, 22 Aug 2001 09:49:11 +0200 Message-Id: X-Mailer: Novell GroupWise 5.5.2 Date: Wed, 22 Aug 2001 09:49:05 +0200 From: "Marion Schwarz" To: Subject: iterate in a template Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Hello world, I'm trying to fill a struts template with an interate tag. The collection, = an ArrayList, is set in the jsp page. My Code looks like this: JSP-Page =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D ... <% ArrayList testList =3D new ArrayList(); testList.add("test_1"); testList.add("test_2"); testList.add("test_3"); pageContext.setAttribute("testList", testList, PageContext.PA= GE_SCOPE); %> ... Template- Page =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D <%@ taglib uri=3D'/WEB-INF/struts-template.tld' prefix=3D'template' %> <%@ taglib uri=3D'/WEB-INF/struts-logic.tld' prefix=3D'logic' %> <%@ taglib uri=3D'/WEB-INF/struts-bean.tld' prefix=3D'bean' %> <% Object testList =3D pageContext.getAttribute("testList", PageContext.PAG= E_SCOPE ); %> ...

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D Unfortunatly I keep getting a PageContextImpl.handlePageException. What am I doing wrong ?? Marion