Re: JSTLExamples NetBean Sample Project

2011-10-27 Thread Stuart Thiel
Hi Tim/Stani, I'd go so far as to say SQL doesn't even belong in the model layer as per Fowler/Larmen/whomever 3-layer approaches. My recommendation is to use some form of Controller servlet that takes care of much of what is needed, like setting up connections and setting attributes (not

Re: How to use index in EL expression?

2014-09-24 Thread Stuart Thiel
...@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 convert String to Date in EL?

2019-08-18 Thread Stuart Thiel
----- > 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 convert String to Date in EL?

2019-08-20 Thread Stuart Thiel
That's what parseDate does, and why I pointed you at it. On Tue, Aug 20, 2019, 04:15 Kazuaki Miyauchi wrote: > This also works using Java description as following. > > > <% SimpleDateFormat sdFormat = new SimpleDateFormat("/MM/dd"); >Date date =

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

Re: How to convert String to Date in EL?

2019-08-20 Thread Stuart Thiel
ted to out in the effort to clean your JSP further, as I don't know of such thing existing (though I can't imagine why it shouldn't, save to discourage everyone putting all their application logic and validation in JSPs) On Tue, Aug 20, 2019, 05:22 Kazuaki Miyauchi wrote: > 2019-08-20 16:39 GMT+

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

Re: How to convert String to Date in EL?

2019-08-20 Thread Stuart Thiel
I suspect you can skip the set tag and wrap the parseDate in the sqlParam tag as well, but I've never mucked with sql in JSPs (I'm pretty strict about using them exclusively as Template Views) On Tue, Aug 20, 2019, 05:44 Stuart Thiel wrote: > Because formats for dates are so ambiguous, ther

Re: How to cast String to int in EL?

2019-08-19 Thread Stuart Thiel
t; > > insert into test values(1,?) > > > > Regards, Kazuaki Miyauchi, Japan > > - > To unsubscribe, e-mail: taglibs-user

Re: How to convert String to Date in EL?

2019-08-19 Thread Stuart Thiel
for), and I'm suspecting you didn't take that advice here. On Mon, Aug 19, 2019, 01:30 Kazuaki Miyauchi wrote: > Hi, Stuart, Thanks for your quick reply. > > 2019年8月19日(月) 13:01 Stuart Thiel : > > The solution with fmt:parseDate is likely what you want, but read what > > they say an