I had to update the taglibs version (due to project requirement) from 1.1.2 to 1.2.5. After this update, while running UI I am getting this error:
javax.servlet.jsp.JspTagException: Illegal use of <when>-style tag without <choose> as its direct parent.
I tried debugging the same code on earlier version of taglibs vs the one I am trying to move to. For both of them, I am getting the identical values for parent tag i.e. ChooseTag. This is the code snippet for which I am getting this error
<c:choose>
<c:when test="${somecondition}">
return;
</c:when>
</c:choose>
taglibs condition failing is as follows:
if (!((parent = this.getParent()) instanceof ChooseTag)) {
throw new JspTagException(Resources.getMessage("WHEN_OUTSIDE_CHOOSE"));
}
value of 'this' in debug mode for upgraded version: Inspect result of 'this' in debug mode I am new to JSP, so apologies in advance if I am missing something which should be obvious.