How do I pass one variable from one form to the next in JSP when it is NOT being passed in a form tag? There is no submit button

I know how to use the request.getParameter(variableName) and then do an
<input type = “hidden” name = “variableName”>

But this only works in a form tag. How else can I pass a variable?