tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kazuaki Miyauchi <miyau...@gmail.com>
Subject Re: How to use index in EL expression?
Date Thu, 02 Oct 2014 09:06:25 GMT
 Thanks a lot!
I'll check its correctly working.

Regards, K. Miyauchi


2014-09-25 19:00 GMT+09:00 Peter Wagner <pswag@hotmail.com>:
> Hello,
>
>
> use a temporary variable as an “index”:
>
>
>
>
>
> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
>
> <html>
>
>     <head>
>
>       <title>EL Test</title>
>
>     </head>
>
>
>     <body>
>
>       <c:forEach var="i" begin="1" end="10">
>
>         <c:set var="paramName" value="vorname${i}"/>
>
>         ${param[paramName]}<br/>
>
>      </c:forEach>
>
>     </body>
>
> </html>
>
>
>
>
> Regards, Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@tomcat.apache.org
For additional commands, e-mail: taglibs-user-help@tomcat.apache.org


Mime
View raw message