tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stuart Thiel <stuart.th...@gmail.com>
Subject Re: How to use index in EL expression?
Date Wed, 24 Sep 2014 13:53:04 GMT
Hello Kazuaki,

Very sorry for the response. I'm teaching this material right now and
assumed this was a student request (I have 70 of them) and only now
noticed that this was on the taglibs mailing list. Again, so sorry.
The "advice" in the prior is still sound, but now very out fo context.
The reasoning is still good.

I really think something in your domain layer should be parsing your
params and cleanly taking care of this all. You can still provide the
cleaned up POJOS via attributes, and that makes more sense. If you're
entirely skipping regular servlets and allowing direct access to JSP
you can probably use something like

${paramValues.key[i]}

On Wed, Sep 24, 2014 at 5:54 AM, Kazuaki Miyauchi <miyauchk@gmail.com> wrote:
>  Hi, it is also convenient to use the iteration of ELs such as
> <c:if test="${!empty param.t${i}vorname}">.
> Of course, it doesn't work. But, I'd like to do the following iteration.
>
> <c:forEach var="i" begin="1" end="8">
> <sql:update var="insert${i}">
> insert into member values (1,?::integer,${i},?,?,?)
>   <sql:param value='${param.department}' />
>   <sql:param value='${teamid}' />
>   <sql:param value="${param.t${i}vorname}" />
>   <sql:param value="${param.t${i}name}" />
> </sql:update>
> </c:forEach>
>
>  Is there some idea for this without whole description expanding i?
>
> Regards,
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: taglibs-user-help@tomcat.apache.org
>



-- 
Stuart Thiel, P. Eng.

---------------------------------------------------------------------
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