This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes setProperty Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "setProperty" Watch "setProperty" New topic


Gustavo Armenta

Joined: Jul 08, 2003
Posts: 3
When I use the custom tag
<jsp:setProperty name="bean" property="*" />
it works fine to load string values. What can I do in order to set Date values? What if I want an exception to happen if the value is not a Date valid type?

Gustavo Armenta<br />2002 SCJP 1.4<br />2006 SCWCD 1.4 and SCBCD 5<br />2007 SCDJWS, SCEA, and OCUP
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60785

Parse the string passed to the bean mutator as a date and throw an exception if the parse fails.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
It is sorta covered in the JavaRanch Style Guide.
subject: setProperty
Similar Threads
Date class related query
javascript calculating between 2 dates
Update more than one rows through one Submit/Update Button
Date Object i.e vs firefox
compare dates for equality with a few minutes of "leniency"