You can't nest
JSP custom tags inside custom tag attributes. The only way you can do what you're trying here is to either use a
Java scriptlet along the following lines
or to use a helper JavaBean which has references to your changeItem and changeItemProduct beans and exposes a boolean property.
Both solutions are, IMHO, unsatisfactory. The underlying problem is that the
Struts logic tag library is not quite flexible enough, in particular, it does not implement a full-featured expression language.
Fortunately, these days we have a much superior alternative to the Struts logic tags: the
JSP Standard Tag Library (JSTL). This is a standard library sanctioned by the JCP, has been much better conceived, and includes a simple expression language that will be part of the core platform in the next JSP version (2.0).
Have fun,
- Peter