What is the relationship of the servlet to the JSP?
Assuming that the servlet is submitted to by the HTML page generated from the JSP, then the only way to send data to the servlet over HTTP is as request parameters; either in the query
string or as form elements.
Or, take the direct (server-only) approach and place the values in the session for later retrieval.