Re: How to use index in EL expression?
2014-10-06 15:39 GMT+09:00 Peter Wagner : > 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-unsubscr...@tomcat.apache.org For additional commands, e-mail: taglibs-user-h...@tomcat.apache.org
Re: How to use index in EL expression?
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. Is there a smart way to resolve above description? Regards, K.Miyauchi - To unsubscribe, e-mail: taglibs-user-unsubscr...@tomcat.apache.org For additional commands, e-mail: taglibs-user-h...@tomcat.apache.org
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 : > Hello, > > > use a temporary variable as an “index”: > > > > > > <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %> > > > > > > EL Test > > > > > > > > > > > ${param[paramName]} > > > > > > > > > > > Regards, Peter - To unsubscribe, e-mail: taglibs-user-unsubscr...@tomcat.apache.org For additional commands, e-mail: taglibs-user-h...@tomcat.apache.org
Re: How to use index in EL expression?
Hello, use a temporary variable as an “index”: <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %> EL Test ${param[paramName]} Regards, Peter
Re: How to use index in EL expression?
Hello Stuart, > 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]}" /> Because we need to specify i concretely for getting data in above case. 2014-09-25 18:08 GMT+09:00 Stuart Thiel : > 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. > > > > On Thu, Sep 25, 2014 at 5:03 AM, Kazuaki Miyauchi wrote: >> 2014-09-24 22:53 GMT+09:00 Stuart Thiel : >>> 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 >> >> 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-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: taglibs-user-h...@tomcat.apache.org >> > > > > -- > Stuart Thiel, P. Eng. > > - > To unsubscribe, e-mail: taglibs-user-unsubscr...@tomcat.apache.org > For additional commands, e-mail: taglibs-user-h...@tomcat.apache.org > - To unsubscribe, e-mail: taglibs-user-unsubscr...@tomcat.apache.org For additional commands, e-mail: taglibs-user-h...@tomcat.apache.org
Re: How to use index in EL expression?
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. On Thu, Sep 25, 2014 at 5:03 AM, Kazuaki Miyauchi wrote: > 2014-09-24 22:53 GMT+09:00 Stuart Thiel : >> 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 > > 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-unsubscr...@tomcat.apache.org > For additional commands, e-mail: taglibs-user-h...@tomcat.apache.org > -- Stuart Thiel, P. Eng. - To unsubscribe, e-mail: taglibs-user-unsubscr...@tomcat.apache.org For additional commands, e-mail: taglibs-user-h...@tomcat.apache.org
Re: How to use index in EL expression?
2014-09-24 22:53 GMT+09:00 Stuart Thiel : > 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 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-unsubscr...@tomcat.apache.org For additional commands, e-mail: taglibs-user-h...@tomcat.apache.org
Re: How to use index in EL expression?
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 wrote: > Hi, it is also convenient to use the iteration of ELs such as > . > Of course, it doesn't work. But, I'd like to do the following iteration. > > > > insert into member values (1,?::integer,${i},?,?,?) > > > > > > > > Is there some idea for this without whole description expanding i? > > Regards, > > - > To unsubscribe, e-mail: taglibs-user-unsubscr...@tomcat.apache.org > For additional commands, e-mail: taglibs-user-h...@tomcat.apache.org > -- Stuart Thiel, P. Eng. - To unsubscribe, e-mail: taglibs-user-unsubscr...@tomcat.apache.org For additional commands, e-mail: taglibs-user-h...@tomcat.apache.org