Please UseCodeTags when posting code or configuration. Unformatted code and configuration is very difficult to read. You can edit your post to include them by using the button.
What is the *exact* error message you're getting? What's the stack trace? Have you checked your configuration using the config-browser plugin?
FY Hsieh
Ranch Hand
Joined: Aug 07, 2006
Posts: 73
posted
0
David Newton wrote:What is the *exact* error message you're getting? What's the stack trace? Have you checked your configuration using the config-browser plugin?
The error message is always the same ---
org.apache.struts2.dispatcher.Dispatcher serviceAction Could not find action or result
There is no Action mapped for action name xxxx
where "xxxx" is the action I want to use redirect-action to redirect to
I have already defined the action and it should be fine because if I call that action "xxxx" directly it works fine.
Another thing is --- if I change the type to "redirect" and use the FULL path in <result type="redirect"> http://localhost:80/app/xxx.action </result> it works. But whenver I change the full path to the action name itself it always shows me "There is no Action mapped for the action.."
What version of Struts 2 are you using? Are there any errors in the log on startup? I ask because as of Struts 2.1 the correct result type is "redirectAction" (not "redirect-action").
jaisai vijay
Ranch Hand
Joined: Dec 17, 2009
Posts: 70
posted
0
Hello David,
I am using Struts1.2 anyway I don't see any errors it perfectly works for me. If FY Hsieh is using different version I am sorry for that.
jaisai vijay wrote:I am using Struts1.2 anyway I don't see any errors it perfectly works for me. If FY Hsieh is using different version I am sorry for that.
I was asking the original poster for the Struts version--by looking at the configuration supplied by the original poster it's clear that you and he are using completely different versions.
FY Hsieh
Ranch Hand
Joined: Aug 07, 2006
Posts: 73
posted
0
I am using struts 2. Actually I have tried both "redirectAction" and "redirect-action" They gave me the same error