If you JSP code returns content without strict XML structure you need to use
Actually ajax mode maintained only for backward compatibility now, ajax-html mode can do all the same, without necessety to format output in any special way. If problem still occurs for you - please provide info about error which occurs
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan