JAVA Handlers for Vault

I have been developing with the pro version of DHTMLX for about 18 months, mostly against PHP, and have now had to switch to java. I am developing using tomcat 5 (JDK 1.5 ) … I know it’s old, but its a customer-imposed limitation!

I see a lot of people here are using java servlets as handlers but there are no samples of Java Servlet code, only JSP. I have tried to “knock together” something that works from user comments in the forum, but can’t get any of the handlers to work. DO you have any “proven working” sample code in Java for the 3 handlers the vault needs (UploadHandler, GetIdHandler, GetInfoHandler) …

Thank you in advance,
Francesco

Hi,
unfortunately there is no such demo in our package. But here are some details about getting it to work.
Servlet is a class which extends class HttpServlet.
So you should create such class and add one method:

void processRequest(HttpServletRequest request, HttpServletResponse response) {
    
}

Method processRequest processes get and post requests so you don’t have to define doGet/doPost methods separately.

You should use code from sample
dhtmlxVault\samples\server\upload_handler.jsp
Also please make sure that all required libraries are added into build-path.