What is the code to pass a parameter to a servlet from a link in an html page.
Currently I have in my servlet a dynamically created link:
" + field0 +"\"> Add item to shopping cart </a><p>");
The 'id=value' is the parameter I would like to pass to the sessionservlet, however when I try to do:
String idbooktoadd = req.getParameter("id")
in the sessionservlet nothing is stored in the string variable 'idbooktoadd'