Robert Slama napsal(a):
> skus toto :
>
>
> <c:forEach var="vec" items="${Bean.seznam}">
> <c:out value="${vec.key}" />
> <c:out value="${vec.value}"/>
> </c:forEach>
> to funguje....Jen pro upřesnění, je to důsledek toho, že se iteruje přes Map.entrySet(). Definováno je to v JSTL 1.1 Specification v popisu c:forEach, cituji: Collections Supported & Current Item The data types listed below must be supported for items. With syntax 1, each object exposed via the var attribute is of the type of the object in the underlying collection, except for arrays of primitive types and maps (see below). With syntax 2, the object exported is of type Integer. * Arrays This includes arrays of objects as well as arrays of primitive types. For arrays of primitive types, the current item for the iteration is automatically wrapped with its standard wrapper class (e.g. Integer for int, Float for float, etc.) Elements are processed in their indexing order. * Implementation of java.util.Collection. An Iterator object is obtained from the collection via the iterator() method, and the items of the collection are processed in the order returned by that Iterator object. * Implementation of java.util.Iterator. Items of the collection are processed in the order returned by the Iterator object. * Implementation of java.util.Enumeration. Items of the collection are processed in the order returned by the Enumeration object. * Implementation of java.util.Map The object exposed via the var attribute is of type Map.Entry. A Set view of the mappings is obtained from the Map via the entrySet() method, from which an Iterator object is obtained via the iterator() method. The items of the collection are processed in the order returned by that Iterator object. * String The string represents a list of comma separated values, where the comma character is the token delimiter. Tokens are processed in their sequential order in the string. Makub -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Supercomputing Center Brno Martin Kuba Institute of Computer Science email: [EMAIL PROTECTED] Masaryk University http://www.ics.muni.cz/~makub/ Botanicka 68a, 60200 Brno, CZ mobil: +420-603-533775 --------------------------------------------------------------
smime.p7s
Description: S/MIME Cryptographic Signature
