posted 13 years ago
You can generate a link to your servlet, like if the servlet is mapped to /myRequest, then you can add a code like
<a href="myRequest?param1=value¶m2=value">click here<a>
the two parameters that we've added after the ? mark can be retrieved from the servlet using request.getParameter
(I've ignored the context path to keep the example simple, the proper path to the servlet would be ${pageContext.request.contextPath}/myRequest )