I have this exact same line in 5 places in my struts xml –
<result name="error" type="json"><param name="root">response</param></result>
Is there a way i can declare this as some sort of custom result and include it in the 5 places i’m using it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You dont have to use it at multiple places instead define this as global result.
So when your action will return error it will use this result from the global result and use it.
But if you want something like
this is not possible, you can only chain, redirect to a different action but one result cannot refer to another result.