Java Enterprise Turbine
Enabling Javascript Error Reporting
To activate the reporting you just have to call the following JET macro:
    <@jet.enablejsreporting url="/reportJavascriptError.jet" messagekey="lbl.jserrorsend.confirm" ask="true"/> 
This enables it just in the page, you have to define an action the default url is the above one. you can access the request parameters asusual via form or request object parameter names are: - url - errormsg - line