• Post Reply Bookmark Topic Watch Topic
  • New Topic

setProperty

 
Gustavo Armenta
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Parse the string passed to the bean mutator as a date and throw an exception if the parse fails.
hth,
bear
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!