views:

432

answers:

1

I use <s:token> in my struts2.1.8 project, but I get log....., plz help me to solve, thanks in advance.

 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)

    ...........................
A: 

Update the tag with the following, to suppress the token errors

<interceptor-ref name="params">
    <param name="excludeParams">dojo\..*,struts.token,struts.token.name</param>
</interceptor-ref>

/srm

Sandeep More