There's a parameter named "nextUrl" being passed in;
AFAIK that isn't one of the parameters for the
redirect acton result, leading to the msg:

> WARNING: Caught OgnlException while setting property
'nextUrl' on 
> type
'org.apache.struts2.dispatcher.ServletActionRedirectResult'.
> ognl.NoSuchPropertyException:

Maybe I'm missing what the OP's issue was, though.

d.

--- Jeromy Evans <[EMAIL PROTECTED]>
wrote:

> Are you using Struts 2.0.7 or below?  That warning's
> present in those 
> versions when you pass a literal string as a
> parameter.
> 
> https://issues.apache.org/struts/browse/WW-1714
> 
> It will go away if you upgrade to 2.0.9.  If you
> can't upgrade, you can 
> turn off warn logging to hide it.
> 
> Tuyen Dinh Van wrote:
> > Hi,
> >
> > I am configuring the struts.xml for my simple
> example like this:
> >
> > <package name="dashboard" namespace="/"
> extends="application">
> >         <action name="dashboard"
> class="com.example.web.action.Dashboard">
> >             <interceptor-ref
> name="authnz"></interceptor-ref>
> >             <result
> name="success">/WEB-INF/jsp/dashboard.jsp</result>
> >             <result name="login"
> type="redirect-action">
> >                 <param
> name="actionName">login</param>
> >                 <param
> name="namespace">/accounts</param>
> >                 <param
> name="nextUrl">http://www.example.com/dashboard.html
> > </param>
> >             </result>
> >         </action>
> > </package>
> >
> > deploy and run application:
> http://example.com/dashboard.action, there is an
> > exception throwed, log details is below:
> >
> > Oct 14, 2007 4:23:18 PM
> >
>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider
> register
> > INFO: Parsing configuration file
> [struts-default.xml]
> > Oct 14, 2007 4:23:18 PM
> >
>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider
> register
> > INFO: Parsing configuration file
> [struts-plugin.xml]
> > Oct 14, 2007 4:23:18 PM
> >
>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider
> register
> > INFO: Parsing configuration file [struts.xml]
> > Oct 14, 2007 4:23:18 PM
> org.apache.struts2.config.Settings getLocale
> > WARNING: Settings: Could not parse struts.locale
> setting, substituting
> > default VM locale
> > Oct 14, 2007 4:23:19 PM
> >
>
com.opensymphony.xwork2.util.ObjectTypeDeterminerFactory
> <clinit>
> > INFO: Setting DefaultObjectTypeDeterminer as
> default ...
> > Oct 14, 2007 4:23:26 PM
>
com.opensymphony.xwork2.util.OgnlUtilinternalSetProperty
> > WARNING: Caught OgnlException while setting
> property 'nextUrl' on type '
> >
>
org.apache.struts2.dispatcher.ServletActionRedirectResult'.
> > ognl.NoSuchPropertyException:
> >
>
org.apache.struts2.dispatcher.ServletActionRedirectResult.nextUrl
> >     at
>
ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java
> > :132)
> >     at
> >
>
com.opensymphony.xwork2.util.OgnlValueStack$ObjectAccessor.setProperty(
> > OgnlValueStack.java:68)
> >     at
> ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1670)
> >     at
> ognl.ASTProperty.setValueBody(ASTProperty.java:101)
> >     at
>
ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
> >     at
> ognl.SimpleNode.setValue(SimpleNode.java:246)
> >     at ognl.Ognl.setValue(Ognl.java:476)
> >     at
>
com.opensymphony.xwork2.util.OgnlUtil.setValue(OgnlUtil.java:186)
> >     at
>
com.opensymphony.xwork2.util.OgnlUtil.internalSetProperty(
> > OgnlUtil.java:360)
> >     at
>
com.opensymphony.xwork2.util.OgnlUtil.setProperties(OgnlUtil.java:76)
> >     at
>
com.opensymphony.xwork2.util.OgnlUtil.setProperties(OgnlUtil.java:49)
> >     at
>
org.apache.struts2.impl.StrutsObjectFactory.buildResult(
> > StrutsObjectFactory.java:95)
> >     at
>
com.opensymphony.xwork2.DefaultActionInvocation.createResult(
> > DefaultActionInvocation.java:195)
> >     at
>
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(
> > DefaultActionInvocation.java:342)
> >     at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke(
> > DefaultActionInvocation.java:253)
> >     at
> org.apache.struts2.impl.StrutsActionProxy.execute(
> > StrutsActionProxy.java:50)
> >     at
>
org.apache.struts2.dispatcher.Dispatcher.serviceAction(
> > Dispatcher.java:504)
> >     at
>
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(
> > FilterDispatcher.java:419)
> >     at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > ApplicationFilterChain.java:235)
> >     at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > ApplicationFilterChain.java:206)
> >     at
>
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(
> > PageFilter.java:119)
> >     at
>
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(
> > PageFilter.java:55)
> >     at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > ApplicationFilterChain.java:235)
> >     at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > ApplicationFilterChain.java:206)
> >     at
>
org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(
> > ActionContextCleanUp.java:99)
> >     at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > ApplicationFilterChain.java:235)
> >     at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > ApplicationFilterChain.java:206)
> >     at
>
org.apache.catalina.core.StandardWrapperValve.invoke(
> > StandardWrapperValve.java:233)
> >     at
>
org.apache.catalina.core.StandardContextValve.invoke(
> > StandardContextValve.java:175)
> >     at
> org.apache.catalina.core.StandardHostValve.invoke(
> > StandardHostValve.java:128)
> >     at
> org.apache.catalina.valves.ErrorReportValve.invoke(
> > ErrorReportValve.java:102)
> >     at
> org.apache.catalina.core.StandardEngineValve.invoke(
> > StandardEngineValve.java:109)
> >     at
> org.apache.catalina.connector.CoyoteAdapter.service(
> > CoyoteAdapter.java:263)
> >     at
>
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
> > :844)
> >     at
> >
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
> > Http11Protocol.java:584)
> >     at
>
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java
> > :447)
> >     at java.lang.Thread.run(Thread.java:619)
> > Oct 14, 2007 4:23:26 PM
> >
>
com.opensymphony.xwork2.validator.ActionValidatorManagerFactory
> <clinit>
> > INFO: Detected AnnotationActionValidatorManager,
> initializing it...
> >
> >
> > Has anyone met this problem? If had some solutions
> for this, please help me.
> >
> > Regards.
> >
> >   
> >
>
------------------------------------------------------------------------
> >
> > No virus found in this incoming message.
> > Checked by AVG Free Edition. 
> > Version: 7.5.488 / Virus Database: 269.14.9/1069 -
> Release 
=== message truncated ===


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to