JSP Custom Tags as attribute values for other custom tags

Discussion in 'Java' started by Dave, Aug 14, 2006.

  1. Dave

    Dave Guest

    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.
    Dave, Aug 14, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mike
    Replies:
    3
    Views:
    862
    Michael Borgwardt
    Jan 9, 2004
  2. Raymond DeCampo

    Custom tags and <jsp:plugin> / <jsp:param>

    Raymond DeCampo, Feb 18, 2004, in forum: Java
    Replies:
    0
    Views:
    612
    Raymond DeCampo
    Feb 18, 2004
  3. Lukasz Indyk
    Replies:
    1
    Views:
    1,455
    Andrew Thompson
    Sep 22, 2004
  4. Replies:
    3
    Views:
    618
  5. Mize-ze
    Replies:
    3
    Views:
    442
    Mize-ze
    Oct 30, 2006
Loading...

Share This Page