To servlet: call a URL of the servlet and pass the parameter either by POST or GET.