How to eval ${var} in Custom Tags?
I'm a newbie in writing custom tags (JSTL), may I know how do I evaluate "${var} "'s value in my Custom Tags.
e.g.:
Java
publicclass MyTagextends TagSupport{
private String value =null;
publicvoid setValue(String value){this.value=value;}
...
}
TLD
...
<tag>
<name>link</name>
<tag-class>MyTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<type>java.lang.String</type>
</attribute>
...
JSP
<%@ taglib uri="http://myTags.com/m" prefix="m" %>
<%@taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<c:set var="var" value="test"/>
<m:link value="${var}"/>
But things seems not right ...
however if I put like following it works:
<m:link value="test"/>
Thanks and Regards,
Avatar Ng
(http://avatar21.superihost.com/)

