In this post, I will present an example which will show how to move the selected file (drop down menu) form a servlet to another servlet which performs operations on the file.
I have created 3 Javafiles namely:
- GetImg (Servlet)
- ImgCompare (simpleJava class)
HelloServlet contains a HTML form that has a dropdown menu. Menu contains 2 JPG files. You should have following images at the given path: