The Artima Developer Community
Sponsored Link

Java Answers Forum
date on jsp

1 reply on 1 page. Most recent reply: Jul 24, 2002 2:13 PM by Don Hill

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Madhusudhan

Posts: 5
Nickname: mad
Registered: Jun, 2002

date on jsp Posted: Jul 15, 2002 3:20 AM
Reply to this message Reply
Advertisement
how to validate "date" using JSP.


Don Hill

Posts: 70
Nickname: ssswdon
Registered: Jul, 2002

Re: date on jsp Posted: Jul 24, 2002 2:13 PM
Reply to this message Reply
There are a couple of ways depending on date format and client side or server side.

One way a simple aproach is to use
SimpleDateFormat and the parse method, if the String ie:your date being passed to parse can't be parsed it is invalid. parse will throw a ParseException in this case.

HTH

Flat View: This topic has 1 reply on 1 page
Topic: Please assist with NullPointer error.... Previous Topic   Next Topic Topic: client-server file transfering

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use