解决异常ognl.OgnlException: source is null for getProperty(null, "token")

异常如下

2010-03-13 09:26:06,224 INFO [STDOUT] (http-0.0.0.0-8080-3) 09:26:06,223 WARN [OgnlValueStack] Error setting expression 'struts.token.name' with value '[Ljava.lang.String;@5cfe5cfe' ognl.OgnlException: source is null for getProperty(null, "token") at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:2203) at ognl.ASTProperty.getValueBody(ASTProperty.java:114) ...........................

在Struts2配置文件里添加如下代码

dojo/..*,struts.token,struts.token.name

你可能感兴趣的:(Struts,2)