?????????ajax????????web???????????jsp???json????????????????????????????????????struts2???????

public String testAjax()
{
    try
    {
         genAjaxDataStr(0?? "{}");
    } catch (BizException e)
    {
         getRequest().setAttribute(this.ERRORMESSAGE?? e.getErrorMessage());
         return this.ERRORJSON;
    } catch (BizSystemException e)
    {
         getRequest().setAttribute(this.ERRORMESSAGE?? this.SYSTEMERROR);
         return this.ERRORJSON;
    } catch (Exception e)
    {
         this.errorTrace("test"?? e.getMessage()?? e);
         getRequest().setAttribute(this.ERRORMESSAGE?? this.SYSTEMERROR);
         return this.ERRORJSON;
    }
    return this.NONE;
}

????????????????????????????????????????????????????δ?????????log??

???????struts2???и???????????????struts2??webwork???????????棬???????????????????е?????????????????????????????????????log??????

<constant name="struts.devMode" value="false" />

??????????Щδ??????????????2??裺

????1?????????????????struts2????????????????????????webwork?????????????????????????

????2?????struts??DispatcherFilter???δ????????????log??

<global-exception-mappings>
    <exception-mapping exception="com.linktong.sdk.biz.exception.BizException"
                result="checkedException" />
</global-exception-mappings>

????????????????????????ɡ??????????????????

????1?????????????????????????л?????????????????

????2????????????????????????hessian???л???????????????????????????????????

????3??????logger??????????л?????log??????????з??????????logger????log4j??з???????????

???????web????????????log???????????????