Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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

[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
I agree. Here's the link:
subject: [jsp:attribute] and RTExpr
It's not a secret anymore!