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. Advertisements

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. Ranganath

    Custom Tags within Custom Tags.

    Ranganath, Oct 17, 2003, in forum: Java
    Replies:
    2
    Views:
    638
    Ranganath
    Oct 21, 2003
  2. Mike
    Replies:
    3
    Views:
    1,226
    Michael Borgwardt
    Jan 9, 2004
  3. Raymond DeCampo

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

    Raymond DeCampo, Feb 18, 2004, in forum: Java
    Replies:
    0
    Views:
    813
    Raymond DeCampo
    Feb 18, 2004
  4. Timo Nentwig

    JSP 2.0: <jsp:attribute> in <c:if>

    Timo Nentwig, May 10, 2004, in forum: Java
    Replies:
    0
    Views:
    822
    Timo Nentwig
    May 10, 2004
  5. Lukasz Indyk
    Replies:
    1
    Views:
    1,640
    Andrew Thompson
    Sep 22, 2004
  6. koslows
    Replies:
    0
    Views:
    655
    koslows
    May 12, 2005
  7. Replies:
    3
    Views:
    802
  8. Mize-ze
    Replies:
    3
    Views:
    605
    Mize-ze
    Oct 30, 2006
Loading...