Re: How to convert String to Date in EL?

Stuart Thiel <[email protected]> Tue, 20 Aug 2019 04:39:28 -0300
Newsgroups gmane.comp.jakarta.taglibs.user
Message-ID <CAEp2D=6B0GLHvYgr1-=QOznoHKges_C7OV_o5rj3Y66QV6JrWw@mail.gmail.com>
--00000000000033ffe10590878ffc
Content-Type: text/plain; charset="UTF-8"

That's what parseDate does, and why I pointed you at it.

On Tue, Aug 20, 2019, 04:15 Kazuaki Miyauchi <[email protected]> wrote:

>  This also works using Java description as following.
>
> <c:set var="date" value="2019/8/20" scope="session"/>
> <% SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd");
>    Date date = sdFormat.parse(session.getAttribute("date").toString());
>    session.setAttribute("date_o", date); %>
> <sql:setDataSource dataSource="jdbc/kome" var="kome"/>
> <sql:update var="stmt" dataSource="${kome}">
>  insert into test values(?,?)
>  <sql:dateParam value="${date_o}" type="date"/>
>  <sql:param value="Good"/>
> </sql:update>
>
>  We need such complicated way to Web-DB access?
> We need simple way using EL description.
>
>  Regards,                            Kazuaki Miyauchi, Japan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

--00000000000033ffe10590878ffc--