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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply 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: 568
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: 14672
    
  11

Yes, you can pass only strings to attribute.


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: [jsp:attribute] and RTExpr
 
Similar Threads
why is jsp:attribute considered rtexprvalue ?
expression in tiles
problem on c:set
jsp actions + expr values
jsp:attribute - HFJ 472