0

Application has two packages one for jsp (struts.xml) and another for json results (struts-json.xml) . Actions in both packages share the same interceptors. When interceptor interrupts and returns error then for ajax request I want to return serialized json object back. Object has error code and description. To achieve that I redirected to another method :

<result name="errorFromInterceptor" type="redirectAction">

Is there a better way to populate and return object when request is captured by interceptor?

Shog9
  • 156,901
  • 35
  • 231
  • 235

0 Answers0