Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

JSP tag lib help

  • 29-08-2007 05:45AM
    #1
    Registered Users, Registered Users 2 Posts: 6,240 ✭✭✭


    I have a jsp tag as follows

    <cd:inputRow fieldValue="${contact.lastName}" />

    which should evaluate to the getLastName method of the contact object - all this is fine

    but instead it comes back as the string "${contact.lastName}" instead of the value

    I have set <rtexprvalue>true</rtexprvalue> in the taglib file
    any other ideas?

    Using jsptaglib version 1.2 (I can't use 2.0) and servlet 2.3

    please note even if I pass in <cd:inputRow fieldValue="<c: out value='${contact.lastName}' />" />
    it comes back as the string "<c: out value='${contact.lastName}/>" rather than the value
    I can use c: out as in the jsp and it works fine





    <taglib>
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name>cd</short-name>
    <uri>uri_goes_here</uri>
    <description>Hussey tag libary</description>

    <tag>
    <name>inputRow</name>
    <tag-class>yada</tag-class>
    <body-content>empty</body-content>
    <description>A table row with input string and text</description>
    <attribute>
    <name>fieldName</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    </tag>
    </taglib>


Advertisement