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


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
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: [jsp:attribute] and RTExpr