I found that STS 3.1 default installation reports errors for all Java variables used on JSP child page, which are defined in the parent page.
For example, a JSP parent page p.jsp defines the following JAVA variables and includes a child JSP file c.jsp.
int j = 0;
String attrValue = attrValues[attrIDElement.intValue()];
<%@ include file="/c.jsp" %>
The child JSP file c.jsp uses the above JAVA variables defined in p.jsp
String addText = "addText" + j++;
String destList = "destList" + j++;
String idName = "idName" + j++;
Error message for variable j in c.jsp is “j cannot be resolved to a variable”.
Error message for variable attrValue in c.jsp is “attrValue cannot be resolved”.
It seems an issue of configuration of STS, since those pages work. If so, how to configue it?
Thanks for anyone for any help about it.