Is it correct to expect the redirect logic for Web Script error handling to apply to JavaScript controllers? The behavior described here (http://wiki.alfresco.com/wiki/Web_Sc...esponse_Status) works as expected for Java based controllers. Specifically, when the status is set to 500 in our Java controller as follows:
This invokes our hmtl.500.ftl file with the "status" object in context. All is well.Code:}catch(Exception re){ status.setException(re); status.setCode(500); status.setMessage("Browse Component Failed to Load"); status.setRedirect(true); }
However, if I set the status to 500 in a JavaScript controller as follows:
The hmtl.500.ftl file is skipped and our local 500.html error page is displayed.Code:status.code=500 status.redirect=true
Thanks,
Bob


Reply With Quote