Re: How to cast String to int in EL?

2019-08-23 Thread Kazuaki Miyauchi
This is also is ideal interface for me. Of course, default of type is String. Regards,Kazuaki Miyauchi, Japan - To unsubscribe, e-mail: taglibs-user-unsubscr...@tomcat.apache.org For additional commands, e-ma

Re: How to cast String to int in EL?

2019-08-20 Thread Kazuaki Miyauchi
This is only amusing. I tried at first as following. If EL supports nested description, this is graceful solution. Of course, it caused javax.el.ELException: Failed to parse the expression [${${member_id}}] Regards,Kazuaki Miyauchi, Japan ---

Re: How to cast String to int in EL?

2019-08-20 Thread Stuart Thiel
Just be careful. If there is no paean passed, I expect it silently evaluates to 0. On Tue, Aug 20, 2019, 05:09 Kazuaki Miyauchi wrote: > Thank you, Stuart! This is what I want to know. > > 2019-08-20 16:48 GMT+09:00, Stuart Thiel : > > Ah, it is parameter casting you're after. That was unclear

Re: How to cast String to int in EL?

2019-08-20 Thread Kazuaki Miyauchi
Thank you, Stuart! This is what I want to know. 2019-08-20 16:48 GMT+09:00, Stuart Thiel : > Ah, it is parameter casting you're after. That was unclear from your > initial request. What does: > > yield? Following correctly works!! insert into test values(?,?) Regards,

Re: How to cast String to int in EL?

2019-08-20 Thread Stuart Thiel
Ah, it is parameter casting you're after. That was unclear from your initial request. What does: yield? On Tue, Aug 20, 2019, 02:07 Kazuaki Miyauchi wrote: > Hi, Stuart > > 2019-08-19 20:32 GMT+09:00, Stuart Thiel : > > I can't speak to Tomcat 5, that's been years. However, the code you're

Re: How to cast String to int in EL?

2019-08-19 Thread Kazuaki Miyauchi
Hi, Stuart 2019-08-19 20:32 GMT+09:00, Stuart Thiel : > I can't speak to Tomcat 5, that's been years. However, the code you're > using is not passing an integer. If you take a look at the generated > Java source (which is a mess with taglibs) you may see why. Once more, > a quick google suggests

Re: How to cast String to int in EL?

2019-08-19 Thread Stuart Thiel
Hello Kazuaki, I can't speak to Tomcat 5, that's been years. However, the code you're using is not passing an integer. If you take a look at the generated Java source (which is a mess with taglibs) you may see why. Once more, a quick google suggests some solutions, in particular, the trivial one:

How to cast String to int in EL?

2019-08-18 Thread Kazuaki Miyauchi
To simple following table. create table test (member_id int, member_name text); In JSP, I accessed as following. insert into test values(?,?) I've gotten following error.(using Tomcat-9.0.22 and Postgres-11.5) javax.servlet.jsp.JspException: insert into test values(?,?) : ERROR: column