2019年8月20日(火) 17:44 Stuart Thiel :
> Because formats for dates are so ambiguous, there's no reliable way to
> interpret.
isn't so ambiguous.
Regards, Kazuaki Miyauchi, Japan
-
To
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
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
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
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
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 =
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
Nope, its to convert a string to a date. I think BalusC is the answer
(ranked 246 or something). While the initial question was not what you were
looking for, the reason I suggested you have a read is because you can
often learn a lot of other things (in particular what you are looking for),
and
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 and perhaps change what you're doing a bit.
That is to convert Date type to String.
I'd like to know reverse way. Google doesn't hit
I made following JSP.
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core; %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql; %>
Insert Date
insert into test values(?,?)
Table was simply made as
10 matches
Mail list logo