Page 1 of 1

Jetty seems to not be executing my Zimlet's JSP files

Posted: Fri Apr 14, 2017 12:11 am
by pwalker
Our IT team is working on upgrading ZCS by a number of versions, from 8.4 to 8.7. One of the key features we had in 8.4 was a custom Zimlet that was a combination of JavaScript, JSP, and Java code. It was developed referencing the Zimlet Developers Guide, https://wiki.zimbra.com/wiki/Zimlet_Dev ... troduction, and so had many places where the JavaScript would send AJAX requests back to the JSP files on the server.

On 8.4, this worked like a charm. However, in our process of testing the upgrade to 8.7 on a development server, we found that the JSP files no longer work.
Now, any requests sent to the JSP files (using the JavaScript function AjxRpc.invoke) simply return the CONTENT of the JSP files, rather than the results from the code being run by Jetty on the server.

Is there a configuration option that needs to be enabled? Why do the JSP files no longer run?

Re: Jetty seems to not be executing my Zimlet's JSP files

Posted: Wed Jun 28, 2017 12:27 pm
by tkhandelwal
By default it is disabled to compile the zimlet's JSP. You can enable it at server level using the command:

Code: Select all

 zmprov ms hostname zimbraZimletJspEnabled TRUE