This also works using Java description as following.
<% SimpleDateFormat sdFormat = new SimpleDateFormat("/MM/dd");
Date date = sdFormat.parse(session.getAttribute("date").toString());
session.setAttribute("date_o", date); %>
insert into test values(?,?)
We need such complica
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 = sdFormat.parse(session.getAttribute("dat
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
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,
2019-08-20 16:39 GMT+09:00, Stuart Thiel :
> That's what parseDate does, and why I pointed you at it.
I also want to do like int case as following.
insert into test values(?,?)
But, of course, this makes
javax.el.ELException: Cannot convert [2019-8-20] of type [class
java.lang.Str
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
Because formats for dates are so ambiguous, there's no reliable way to
interpret. The is why you'd use the parseDate tag, probably inside a set to
get a date object that you'd then pass to your dateparam thing. Presumably
you could write an el "function" to do that inline if you wanted to out in
th
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, there's n
2019年8月20日(火) 17:55 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)
I think many people use JavaBeans or like that using Date data.
Excuse me. PC sent my under-writing mail.
2019年8月20日(火) 18:14 Kazuaki Miyauchi :
> I think many people use JavaBeans or like that using Date data.
> But, in Web site, year, month, day are mostly requested parameters.
> It was very convenient I can use ${param.year} and s
It was very convenient I
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
---
11 matches
Mail list logo