Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 35321 invoked from network); 1 Sep 2004 09:39:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Sep 2004 09:39:13 -0000 Received: (qmail 59697 invoked by uid 500); 1 Sep 2004 09:38:48 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 59627 invoked by uid 500); 1 Sep 2004 09:38:47 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 59610 invoked by uid 99); 1 Sep 2004 09:38:47 -0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=DNS_FROM_RFC_POST X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [64.4.35.32] (HELO hotmail.com) (64.4.35.32) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 01 Sep 2004 02:38:46 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 1 Sep 2004 02:38:45 -0700 Received: from 195.137.97.218 by by12fd.bay12.hotmail.msn.com with HTTP; Wed, 01 Sep 2004 09:38:45 GMT X-Originating-IP: [195.137.97.218] X-Originating-Email: [stixwix@hotmail.com] X-Sender: stixwix@hotmail.com From: "andy wix" To: user@struts.apache.org Bcc: Subject: RE: Identifying the 'clicked' line when iterating over collection Date: Wed, 01 Sep 2004 09:38:45 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 01 Sep 2004 09:38:45.0480 (UTC) FILETIME=[79BCBE80:01C49007] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I am trying to follow the advice given yesterday but am now baffled by the basic jstl stuff. I have cut it down to basics and still get no output actually written to the page. I've tried all variations on the theme (have the arraylist in the session, use c:outs in the "" tags etc). The code is (I have omitted the html stuff): <% Contact con1 = new Contact("name1"); Contact con2 = new Contact("name2"); ArrayList contacts = new ArrayList(); contacts.add(con1); contacts.add(con2); %>
${status.index} ${contact.name}
The c:out tag at the end is the only bit that works (writes to the page) so I assume the taglib declaration at the top of the file is OK. Cheers, Andy _________________________________________________________________ Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org