Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

re: rtexprvalue in custom tags

 
Rina Magro
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all
if the <rtexprvalue> subelement of <attribute> element has a value of false, must the attribute setter method in the tag handler class return a String type please?
thanks
Rina
 
Dagbj�rn Nogva
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rina,

I guess you mean the setter should take a String type argument (not return a String type value).

Yes, your assumption is correct. If <rtexprvalue> is false, it means that only static values can be specified for this attribute and static values can only be of type String.

This is how the JSP 2.0 spec explanes the optional <type> subelement of the <attribute> element.

Defines the Java type of the attributes value. For static values (those determined at translation time) the type is always java.lang.String.


Cheers,
Dagbj�rn
 
Rina Magro
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Dagbj�rn thanks,
think i need to have a bitta look at the specs (a lot of the info seems to be there)
and oops yes thats what i meant setter method should have String argument and getter return a String type
cheers thanks lots
Rina
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic