Want to call servlet

Want to call servlet

Hi All,
There is a requirement to get image coordinate as image is clicked. At the same time, it should call the servlet by taking that image coordinates.
Currently it is showing the coordinates on image click but not calling servlet.