开发者

OGNL parse exception

开发者 https://www.devze.com 2023-02-18 11:54 出处:网络
Can anyone tell me what could have raised this error..? [ognl.ParseException: Encountered \"<EOF>\" at line 1, column 1

Can anyone tell me what could have raised this error..?

[ognl.ParseException: Encountered "<EOF>" at line 1, column 1
Was expecting one of:
    ":" ...
    "not开发者_Go百科" ...
    "+" ...
    "-" ...
    "~" ...
    "!" ...
    "(" ...
    "true" ...
    "false" ...
    "null" ...
    "#this" ...
    "#root" ...
    "#" ...
    "[" ...
    "{" ...
    "@" ...
    "new" ...
    <IDENT> ...
    <DYNAMIC_SUBSCRIPT> ...
    "\'" ...
    "`" ...
    "\"" ...
    <INT_LITERAL> ...
    <FLT_LITERAL> ...
    ]


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

<interceptor-stack name="defaultStack">
    <interceptor-ref name="params">
        <param name="excludeParams">dojo\..*,^struts\..*,jquery\..*</param>
    </interceptor-ref>
</interceptor-stack>


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消