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

[jsp:attribute] and RTExpr

 
Alec Lee
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I use an RTExpr with <jsp:attribute>:

<mytag:something>
<jsp:attribute name="att">${myRTExpr}</jsp:attribute>
</mytag:something>

Is the value of 'att' passed to my tag handler always toString'ed first? It seems that <jsp:attribute> can only give us a String.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you can pass only strings to attribute.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic