同一个jsp在相同环境的linux服务器上,一台可以编译jsp,一台不可编译
我同一个war包部署到相同环境的linux服务器上,有的可以正常访问jsp,正常编译,有2台服务器不能正常编译,不能访问报500错误 ,用的是weblogic
报错信息
[ERROR] 2015-08-03 20:10:27,100 org.apache.struts2.rest.RestActionInvocation - Exception processing the result.
javax.servlet.ServletException: weblogic.servlet.jsp.CompilationException: Failed to compile JSP /contents/pages/productMgr/imgEdit.jsp
imgEdit.jsp:103:226: Syntax error in expression. Encountered ":aspectRatioWidth". Expected one of : ".", "[", ":", ">", "gt", "<", "lt", ">=", "ge", "<=", "le", "==", "eq", "!=", "ne", "&&", "and", "||", "or", "*", "+", "-", "/", "div", "%", "mod",
<td class="imgSelectYuLan" ><img id="imgCut" src="${ctx}/contents/images/yuLan.png" width="${aspectRatioWidth>300||aspectRatioHeight>300?(aspectRatioWidth>aspectRatioHeight?300:(300/aspectRatioHeight)*aspectRatioWidth):aspectRatioWidth}" height="${aspectRatioWidth>300||aspectRatioHeight>300?(aspectRatioWidth>aspectRatioHeight?(300/aspectRatioWidth)*aspectRatioHeight:300):aspectRatioHeight}" /></td>
^--------------^
imgEdit.jsp:103:381: Syntax error in expression. Encountered ":aspectRatioHeight". Expected one of : ".", "[", ":", ">", "gt", "<", "lt", ">=", "ge", "<=", "le", "==", "eq", "!=", "ne", "&&", "and", "||", "or", "*", "+", "-", "/", "div", "%", "mod",
<td class="imgSelectYuLan" ><img id="imgCut" src="${ctx}/contents/images/yuLan.png" width="${aspectRatioWidth>300||aspectRatioHeight>300?(aspectRatioWidth>aspectRatioHeight?300:(300/aspectRatioHeight)*aspectRatioWidth):aspectRatioWidth}" height="${aspectRatioWidth>300||aspectRatioHeight>300?(aspectRatioWidth>aspectRatioHeight?(300/aspectRatioWidth)*aspectRatioHeight:300):aspectRatioHeight}" /></td>
^---------------^