问题描述
从tomcat上迁移到weblogic就粗问题了el不能解析,试了网上很多方法都不行啊,谁遇到过啊Compilation of JSP File '/EE/EngineeringEvaluationAdd.jsp' failed:--------------------------------------------------------------------------------EngineeringEvaluationAdd.jsp:28:36: Syntax error in expression. Encountered "(". Expected one of : "}", ".", "[", ">", "gt", "<", "lt", ">=", "ge", "<=", "le", "==", "eq", "!=", "ne", "&&", "and", "||", "or", "*", "+", "-", "?", "/", "div", "%", "mod", var paraNum = '${paraVOList.size()}'; ^EngineeringEvaluationAdd.jsp:81:86: Syntax error in expression. Encountered "(". Expected one of : "}", ".", "[", ">", "gt", "<", "lt", ">=", "ge", "<=", "le", "==", "eq", "!=", "ne", "&&", "and", "||", "or", "*", "+", "-", "?", "/", "div", "%", "mod", <input type="hidden" id="aa" name="aa" class="TextBoxShort" value="${paraVOList.size()}"/> ^java.lang.IllegalStateException: Response already committedat weblogic.servlet.internal.ServletResponseImpl.objectIfCommitted(ServletResponseImpl.java:1629)at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:637)at org.apache.struts2.dispatcher.Dispatcher.sendError(Dispatcher.java:771)at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:506)at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)Truncated. see log file for complete stacktrace
解决方案
var paraNum = '${paraVOList.size()}'; 写法不对,应该为${fn:length(paraVOList)}.