JSP Custom Tags as attribute values for other custom tags

D

Dave

I can use a custom tag as an attribute value in a standard html element
such as:

<img src="<ct:mypath file='x.gif'/>" />

I'm finding that I can't use the same kind of idiom inside a custom
tag. For example:

<ct:myimage filepath="<ct:mypath file='x.gif'/>" />

(I just typed these examples from my head. please forgive mismatching
delimiters and what not)

What I'm finding is that in the second case the custom tag mypath is not
being evaluated. It's being passed as a literal string even though
<rtexprvalue> is true for that attribute.

Is this an understood limitation of custom tags? Or should I expect
this to work?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top