Return-Path: Delivered-To: apmail-jakarta-taglibs-user-archive@www.apache.org Received: (qmail 4914 invoked from network); 27 Jan 2007 04:06:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Jan 2007 04:06:58 -0000 Received: (qmail 97626 invoked by uid 500); 27 Jan 2007 04:07:03 -0000 Delivered-To: apmail-jakarta-taglibs-user-archive@jakarta.apache.org Received: (qmail 97606 invoked by uid 500); 27 Jan 2007 04:07:03 -0000 Mailing-List: contact taglibs-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tag Libraries Users List" Reply-To: "Tag Libraries Users List" Delivered-To: mailing list taglibs-user@jakarta.apache.org Received: (qmail 97595 invoked by uid 99); 27 Jan 2007 04:07:03 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jan 2007 20:07:03 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [216.252.111.85] (HELO web56406.mail.re3.yahoo.com) (216.252.111.85) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 26 Jan 2007 20:06:53 -0800 Received: (qmail 71843 invoked by uid 60001); 27 Jan 2007 04:06:27 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=SU+9/qlD7bGzL08pXK3tPr80zRR8erjleFe2OsZqNiksWtAb1OIeCBFUGeKfg0khk3pNHtkTMBRLmIjN3/IxUHqV0U6PwyvslSKs7FS068MQbmIpHnXmOVQCi30IvZxvBwGP6oMQmf4BvrNSkYGIH4GVQYfm1iP/LX0L8EChAjo=; X-YMail-OSG: 88.JyAEVM1mhZR2_UzaZMv_49T2TXEnKCaw17JeudDUa6AUGz9UKIlD24zyjyO38mA-- Received: from [68.196.152.202] by web56406.mail.re3.yahoo.com via HTTP; Fri, 26 Jan 2007 20:06:27 PST X-Mailer: YahooMailRC/368.3 YahooMailWebService/0.6.132.7 Date: Fri, 26 Jan 2007 20:06:27 -0800 (PST) From: Rashmi Rubdi Subject: Re: Problem when a use a x:forEach into another x:forEach To: Tag Libraries Users List MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <946762.71836.qm@web56406.mail.re3.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org Are you getting any errors in the log? =0A=0AWhen you upgrade from JSTL1.0 = to JSTL1.1 you need to make some changes or verify these changes:=0A=0A1) U= se Servlet 2.4 jar=0A=0A2) Change web.xml to servlet 2.4 version:=0A=0A=0A=0A3) Change tag library declarations to= :=0A=0A<%@ taglib prefix=3D"c" uri=3D"http://java.sun.com/jsp/jstl/core" %>= =0A<%@ taglib prefix=3D"x" uri=3D"http://java.sun.com/jsp/jstl/xml" %>=0ASi= milarly upgrade other JSTL namespace URIs=0A=0A-Rashmi=0A=0A----- Original = Message ----=0AFrom: S=E9bastien Brodeur =0ATo: taglibs= -user@jakarta.apache.org=0ASent: Friday, January 26, 2007 2:03:02 PM=0ASubj= ect: Problem when a use a x:forEach into another x:forEach=0A=0A=0AI'm curr= ently migrating my application from WebSphere 5 (JSTL 1.0) to=0AWebSphere 6= (JSTL 1.1), and so far, the XML taglibs give us a lot of=0Atrouble.=0A=0AF= or example :=0A=0A---------------------------------------------------------= ---------------------------------------------=0Acollections.xml=0A=0A=0A=0A = =0A horror=0A Horror novel=0A =0A= =0A scifi=0A Sci-Fi novel=0A =0A=0A=0A------------------------------------------= ------------------------------------------------------------=0Abooks.xml=0A= =0A=0A=0A =0A = scifi=0A Robots=0A =0A =0A scifi=0A The= Moon is a Hashes Mistress=0A =0A =0A scifi=0A Spaceship Tropper=0A =0A =0A horror=0A This<= /title>=0A </book>=0A</books>=0A=0A---------------------------------------= ---------------------------------------------------------------=0Abooks.jsp= =0A=0A<%@ taglib prefix=3D"c" uri=3D"/WEB-INF/c.tld" %>=0A<%@ taglib prefix= =3D"x" uri=3D"/WEB-INF/x.tld" %>=0A=0A<c:import var=3D"xml_collections" url= =3D"http://localhost/collections.xml"; />=0A<x:parse xml=3D"${xml_collectio= ns}" var=3D"collections" scope=3D"request"/>=0A=0A<c:import var=3D"xml_book= s" url=3D"http://www.localhost/books.xml"; />=0A<x:parse xml=3D"${xml_books= }" var=3D"books" scope=3D"request"/>=0A=0A<x:forEach select=3D"$collections= /collections/collection" var=3D"collection">=0A <x:out select=3D"$collecti= on/name" />=0A <ul>=0A <x:forEach select=3D"$books/books/book[collectio= n_id=3D$collection/id]"=0Avar=3D"book">=0A <li><x:out select=3D"$book/= title" /></li>=0A </x:forEach>=0A </ul>=0A</x:forEach>=0A=0A-----------= ---------------------------------------------------------------------------= ----------------=0AOutput (WebSphere 5 using JSTL 1.0)=0A=0A Horror novel= =0A <ul>=0A <li>This</li>=0A </ul>=0A=0A Sci-Fi novel=0A <ul>=0A = <li>Robots</li>=0A <li>The Moon is a Hashes Mistress</li>=0A = <li>Spaceship Tropper</li>=0A </ul>=0A=0A---------------------------------= ---------------------------------------------------------------------=0A=0A= Output (WebSphere 6 using JSTL 1.1)=0A=0A Horror novel=0A <ul>=0A </ul>= =0A Sci-Fi novel=0A <ul>=0A </ul>=0A=0A=0AAny idea how to do that withou= t changing the structure of the two XML files?=0A=0AThank!=0A=0A-- =0AS=E9b= astien Brodeur=0Abrodseba@iname.com=0ASite Web : http://www.un-programmeur-= php.ca/=0A=0A=0A =0A_______________________________________________________= _____________________________=0ACheap talk?=0ACheck out Yahoo! Messenger's = low PC-to-Phone call rates.=0Ahttp://voice.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: taglibs-user-help@jakarta.apache.org