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 Thu, 25 Sep 2014 09:08:54 GMT
Hello Kazuaki,
Can you not use i directly as you're already within el? I'm not sure
why you want to embed the el.

<sql:param value="${paramValues.name[i]}" />

On Thu, Sep 25, 2014 at 5:03 AM, Kazuaki Miyauchi <miyauchk@gmail.com> wrote:
> 2014-09-24 22:53 GMT+09:00 Stuart Thiel <stuart.thiel@gmail.com>:
>> 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]}
>
>  Using paramValues, it causes the same problem.
> EL cannot be nested, so
>
> <sql:param value="${paramValues.name[${i}]}" /> cannot be compiled.
>
>  I think we need pre-taglibs-taglibs or EL can be nested for resolving this.
>
>  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