View Single Post
  #2 (permalink)  
Old 02-19-2009, 06:17 AM
caio80 caio80 is offline
Senior Member
 
Posts: 54
Default

Try with the PrintWriter.println function, you've got more control when debuggin.

Code:
        PrintWriter pw = response.getWriter();
        pw.println(msg);

And try to call your JSP from a JS, like this:
Code:
[...]
    AjxRpc.invoke(requestParams, serverURL, reqHeader,  new AjxCallback(this, this._resultCallback), false);
[...]
It_Open1_Zimlet.prototype._resultCallback = function(result) {
    this.displayStatusMessage(result.text);
};
You gotta peek around the Zimbra source code a bit to get the hang of it... Try by first checking ZmZimletBase.js, one of the most important ones.
Reply With Quote