Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • 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
Pie
Posts: 64629
86
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