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

Re: javax.servlet.jsp.JspException: IO Error: Stream closed

2020-01-21 Thread Stuart Thiel
()); > } > finally { > cleanup(); > } > > return EVAL_PAGE; > > } > > Any ideas? We tried different versions of Tomcat (8.5.24, 8.5.47, 9.0.27) > as well as different versions of jsp-api.jar and servlet-api.jar but the > problem still there. > > Thanks --

Re: Apache Tomcat Version 9.0.65

2022-08-24 Thread Stuart Thiel
4801 > CBD Perdana, Jalan Perdana > 63000 Cyberjaya > Selangor Darul Ehsan > Malaysia > Tel: +603 8318 1800 > Fax: +603 8319 1800 > HP: +6017 3913905 > a...@msctrustgate.com > -- Dr. 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