在JSP页面出现下面的问题
An error occurred at line: 210 in the jsp file: /AddBuildingAction.jsp
AddBuilding cannot be resolved
207: building.setVariableInfolNumber(variableNumberInt);
208: building.setVariableInfos(variableInfo);
209:
210: if (AddBuilding.addBuilding(building))
211: {
212: //娣诲姞鎴愬姛
213:
Stacktrace:] with root cause
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 30 in the jsp file: /AddBuildingAction.jsp
Building cannot be resolved to a type
27: int MaxVariableNumber = 5;
原因:JSP没有正确引用包。因为改了包名,在JSP页面没有自动更改。所以building类解析不成功。