aspose file tools*
The moose likes JSP and the fly likes [jsp:attribute] and RTExpr Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "[jsp:attribute] and RTExpr" Watch "[jsp:attribute] and RTExpr" New topic
Author

[jsp:attribute] and RTExpr

Alec Lee
Ranch Hand

Joined: Jan 28, 2004
Posts: 569
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

Joined: Nov 24, 2005
Posts: 14688
    
  16

Yes, you can pass only strings to attribute.


[My Blog]
All roads lead to JavaRanch
 
Consider Paul's rocket mass heater.
 
subject: [jsp:attribute] and RTExpr