I'm a little confused if which one is evaluated first. jstl or my custom taglib.
Here is some snippets.
<taglib>
...
<tag>
<name>my_tag</name>
<tagclass>MyTagLib</tagclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>attr1</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</taglib>
tried to use it in jsp by:
...
pageContext.setAttribute("val", "actualValue");
...
<t:my_tag attr1="${val}"/>
public MyTagLib extends TagSupport{
private String attr1;
public void setAttr1( String str ){
attr1 = str; // this returns "${val}". i was expecting "actualValue".
}
...
}
I wonder how to access the actual value of val?