File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
JavaRanch » Java Forums » Java » Servlets
Bookmark "rtexpvalue in custom tags" Watch "rtexpvalue in custom tags" New topic
Author

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 ?
TIA
- Chris
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
    
    6
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: rtexpvalue in custom tags