I'm trying to write a custom tab with attributes, but I can not get the tag handler class to read the attribute values. Using an <%= %>
, I can get objValue to work. But objValue2
does not get evaluated when I use ${}
.
jsp:
<% CommitmentItem ci = (CommitmentItem) request.getAttribute("commitmentItem"); %>
<myTag:calPOP objValue="<%= ci.getSource() %>" objValue2="${commitmentItem.source}" > </myTag:calPOP>
Tag Handler:
<getters & setters here>
public int doStartTag() throws JspException {
pc.setAttribute("objValue2", objValue);
System.out.println("Object Value = " + objValue );
System.out.println("Object2 Value = " + objValue2 );
Console output:
Object Value = Contract W23AG-23
Object2 Value = ${commitmentItem.source}