On 9/10/2022 9:27 AM, wwyyzz_001 wrote:
"login" action is defined in default namespase."success" result is defined in global-results,result type is json.
Where in which package you've defined the global-results? Could you share please its definition? Have you extended strus-default?
Invokehttp://localhost:8080/wisdomcampus-gs/user/login is ok in Struts 2.3.34. But it is not ok in Structs 2.5.30,Structs throw exception(Could not find action or result) in DefaultActionInvocation.executeResult(DefaultActionInvocation.java:377) Error log is : 2022-09-09 18:32:16 [http-nio-8080-exec-1] DEBUG SecurityMemberAccess:67 - Checking access for [target: wisdom.user.action.LoginAction@3fd415d2, member: public final java.lang.String wisdom.common.JsonActionBase.execute() throws java.lang.Exception, property: null] 2022-09-09 18:32:16 [http-nio-8080-exec-1] DEBUG InstantiatingNullHandler:98 - Entering nullPropertyValue [target=[wisdom.user.action.LoginAction@3fd415d2, com. opensymphony.xwork2.DefaultTextProvider@e405047], property=locale] 2022-09-09 18:32:16 [http-nio-8080-exec-1] DEBUG I18nInterceptor:124 - After action invocation Locale=null 2022-09-09 18:32:16 [http-nio-8080-exec-1] WARN Dispatcher:613 - Could not find action or result: /wisdomcampus-gs/login com.opensymphony.xwork2.config.ConfigurationException: No result defined for action wisdom.user.action.LoginAction and result success
This log line shows that the action is successfully resolved, but for some reason Struts cannot find global result 'success' for it. Are you sure that you've defined 'success' as a global result? TBH it's a bit strange I think to define 'success' as global result. Could you please explicitly define a result 'success' for that action specifically? just to see if problem is with global-results.
Regards --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org