OGNL解析异常
谁能告诉我什么可能会引发这个错误..?
[ognl.ParseException: Encountered "<EOF>" at line 1, column 1
Was expecting one of:
":" ...
"not" ...
"+" ...
"-" ...
"~" ...
"!" ...
"(" ...
"true" ...
"false" ...
"null" ...
"#this" ...
"#root" ...
"#" ...
"[" ...
"{" ...
"@" ...
"new" ...
<IDENT> ...
<DYNAMIC_SUBSCRIPT> ...
"\'" ...
"`" ...
"\"" ...
<INT_LITERAL> ...
<FLT_LITERAL> ...
]
Can anyone tell me what could have raised this error..?
[ognl.ParseException: Encountered "<EOF>" at line 1, column 1
Was expecting one of:
":" ...
"not" ...
"+" ...
"-" ...
"~" ...
"!" ...
"(" ...
"true" ...
"false" ...
"null" ...
"#this" ...
"#root" ...
"#" ...
"[" ...
"{" ...
"@" ...
"new" ...
<IDENT> ...
<DYNAMIC_SUBSCRIPT> ...
"\'" ...
"`" ...
"\"" ...
<INT_LITERAL> ...
<FLT_LITERAL> ...
]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
某些
参数
解析错误,您可以通过检查提交的URL来找出哪个参数无效。尝试:
- 更正参数的无效
名称
- 或者,以下示例可能是一个解决方案/给您一个想法:
struts.xml
排除参数
这个拦截器可以通过设置其 exceptParams 属性强制忽略参数。该属性接受逗号分隔的正则表达式列表。当这些表达式中的任何一个与参数名称匹配时,拦截器将忽略该参数。
Parse error for certain
parameter
, you can find out which parameter is invalid by checking the submitted URL.Try :
- Correct the invalid
name
of the parameter- Or, the following example might be a solution / give you an idea :
struts.xml
Excluding parameters
This interceptor can be forced to ignored parameters, by setting its excludeParams attribute. This attribute accepts a comma separated list of regular expressions. When any of these expressions match the name of a parameter, such parameter will be ignored by the interceptor.