aspose file tools
The moose likes Servlets and the fly likes rtexpvalue in custom tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "rtexpvalue in custom tags" Watch "rtexpvalue in custom tags" New topic

rtexpvalue in custom tags

Chris Salivar
Ranch Hand

Joined: May 25, 2001
Posts: 34
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 ?
- Chris
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
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...
jQuery in Action, 2nd edition
subject: rtexpvalue in custom tags