Irrespective of whether you use get or post, you can get the values on next .jsp page using request.getparameter() and store it into the string:...
Separate names with a comma.