I need to send a particular parameters to Servlet from JSP page. E.g: if I click on the Facebook icon on the web page, then I should send “facebook” as parameter to my Servlet and my Servlet will respond according to the parameter received from JSP file or HTML file.
Share
Just wrap the icon in a link with a query string like so
In the
doGet()method of the servlet just get and handle it as followsSee also: