Hi you all,
I encountered an example of a custom tag and deployment of that tag which raised a question. The example is as follows:
A custom tag implementing the Tag interface.
public class ifTag implements Tag
private boolean condition;
public void setCondition(boolean condition)
this.condition = condition;
public int doStartTag() throws JspException
...all other methods
Now if I deploy this custom tag in a TLD as follows:
Isn't this wrong? Shouldn't you get an compile time error because of mismatching types? No type means default java.lang.String type? I mean aren't you supposed to declare the type of the attribute as being boolean?
And what if you declare the following in the TLD:
Does that means you can't use a request parameter as the trexprvalue for this custom tag directly, because you'll have to convert it from String to boolean first?
well any help appreciated (on this subject that is).