How to upload file to Tomcat's servlet

Hi! I read webix docs and learned uploader samples, but didn’t find anything about how to upload file to Tomcat’s servlet. I don’t uses PHP, so sample with php/upload.php is useless for me. Does anyone have an example, how to work with servlet? Maybe somebody knows how to make uploader’s send function?

I found & correct errors in my “green” code. Now everything is fine. Question is no more actual.