File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "[jsp:attribute] and RTExpr" Watch "[jsp:attribute] and RTExpr" New topic

[jsp:attribute] and RTExpr

Alec Lee
Ranch Hand

Joined: Jan 28, 2004
Posts: 569
If I use an RTExpr with <jsp:attribute>:

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

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é

Joined: Nov 24, 2005
Posts: 14688

Yes, you can pass only strings to attribute.

[My Blog]
All roads lead to JavaRanch
It is sorta covered in the JavaRanch Style Guide.
subject: [jsp:attribute] and RTExpr