Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

rtexpvalue in custom tags

 
Chris Salivar
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if the rtexpvalue in the custom tag is set to true and a runtime value is assigned to the respective variable in the JSP page then will the value be coerced to a string ?
TIA
- Chris
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not necessarily ... it depends on the setter available in the tag handler implementation. For example, you can pass a date into a tag using <myTag:showDate date="<%= new Date() %>"/>, providing that you have a setDate(Date) method defined in your tag handler.
In other words, you can use sort of Object if you have rtexprvalue set to true. If it is set to false, then there are some implicit conversion rules.
Hope that helps...
Simon
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic