You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Kazuaki Miyauchi <mi...@gmail.com> on 2014/10/02 11:06:25 UTC
Re: How to use index in EL expression?
Thanks a lot!
I'll check its correctly working.
Regards, K. Miyauchi
2014-09-25 19:00 GMT+09:00 Peter Wagner <ps...@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
Re: How to use index in EL expression?
Posted by Kazuaki Miyauchi <mi...@gmail.com>.
2014-10-06 15:39 GMT+09:00 Peter Wagner <ps...@hotmail.com>:
> Also, I would recommend to avoid using sql:update under any circumstances.
That causes some problems?
I think dbtags are the most powerful tools for developing Web-DB programs.
Why did developers stop creating this powerful functions?
Regards, K.Miyauchi
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@tomcat.apache.org
For additional commands, e-mail: taglibs-user-help@tomcat.apache.org
AW: How to use index in EL expression?
Posted by Peter Wagner <ps...@hotmail.com>.
Hi,
> <sql:update var="insert${i}">
> Is there a smart way to resolve above description?
This is not possible. I'd suggest to use beans instead.
Also, I would recommend to avoid using sql:update under any circumstances.
Regards, Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@tomcat.apache.org
For additional commands, e-mail: taglibs-user-help@tomcat.apache.org
Re: How to use index in EL expression?
Posted by Kazuaki Miyauchi <mi...@gmail.com>.
Hi. Peter.
It works well. Thank you very much!
EL is fantastic!
And now I have one more question.
var parameter doesn't seem to accept EL description as following.
<c:forEach var="i" begin="1" end="8">
<sql:update var="insert${i}">
Is there a smart way to resolve above description?
Regards, K.Miyauchi
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@tomcat.apache.org
For additional commands, e-mail: taglibs-user-help@tomcat.apache.org