send cursor-position to servlet