Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
In my action class i have passed the result type error to struts.xml when an exception raised .
Return value in action class is ERROR.

In my struts.xml for the return type error i have pointed a jsp with displaying action error message.
Mapping value in struts.xml is ERROR.

But the problem is, as exception is raised it points to error JSP with error message. But along with error message it also dispaly below message.

"No result defined for action MYActioncalss and result error".

I am wondering in both action class and strut.xml file i have mapped the result type as "ERROR" but in the error message it shows me "error".

can u help to find the fault in the issue.
Posted

1 solution

solved the issue.

If i mapped result type ERROR in action class then it passes the value to struts as "error" only.
If i mapped result type "ERROR" in action class then it passes the value to struts as "ERROR" only.

Thats the difference
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900