File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes How to Insert date from JSP to mysql (JSF tags) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "How to Insert date from JSP to mysql (JSF tags)" Watch "How to Insert date from JSP to mysql (JSF tags)" New topic

How to Insert date from JSP to mysql (JSF tags)

Anjaan Chopra

Joined: Apr 15, 2014
Posts: 2
How to insert date from a jquery popup calendar into mysql

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17280

I added code tags (using the message editor's "Code" button) to make your JSP and Java code easier to read.

It would be even easier to read, however, if you would trim down your examples to just the essentials of your problem. Since we don't get paid to do this, the harder things are to read, the lower your chances of getting an answer.

I use the DateTime JSF tag in RichFaces, so I'm not expert on using the raw jQuery version of it.

I did notice a couple of things, though. This expression:

is not valid. It should be "#{expBean.datetimepicker_mask}", though use of underscores in Java properties isn't encouraged.

I also recommend converting to JSF version 2. JSF version 1 is probably about due to go end-of-life.

Oh yeah. I forgot to mention: The "$" shorthand notation for jQuery conflicts with EL's interpretation of the use of the "$" character. There are ways around this, but it's probably best to just use the long-form notation: "jQuery().".

An IDE is no substitute for an Intelligent Developer.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: How to Insert date from JSP to mysql (JSF tags)
It's not a secret anymore!