繁体   English   中英

ognl.ExpressionSyntaxException

[英]ognl.ExpressionSyntaxException

我在查找ognl.ExpressionSyntaxException:OGNL表达式格式错误:添加客户[ognl.ParseException:在第1行第5列遇到了““ Customer”“。希望其中之一: <EOF> "," ... "=" ... "?" ... "||" ... "or" ... "&&" ... "and" ... "|" ... "bor" <EOF> "," ... "=" ... "?" ... "||" ... "or" ... "&&" ... "and" ... "|" ... "bor"

我正在使用jsp中的代码,例如<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags" %> <html>
<head>
<title>titlePager</title>
</head>
<body>
<s:form action="addsome">
<s:textfield label="Customer ID:" name="customerID" size="15" maxlength="10" />
</s:form>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags" %> <html>
<head>
<title>titlePager</title>
</head>
<body>
<s:form action="addsome">
<s:textfield label="Customer ID:" name="customerID" size="15" maxlength="10" />
</s:form>
</body>
</html>

我认为您的代码示例不完整。 首先,我没有在表单中看到“提交”按钮,该异常表明格式错误的OGNL异常是“添加客户”,这看起来就像您在提交按钮上放置的标签一样。

确保在“提交”按钮上为正确的属性指定了该属性。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM