You just need to pass the values as request parameters to the next request. This way they'll be available in the next request as, well, request parameters.
If the request from page A to page B happens to be invoked by a link, then you need to define the parameters in the URL:
<a href="update.jsp?userid=${user.id}&fieldid=${field.id}">update</a>
This way they'll be as expected available by request.getParameter()
in update.jsp
.
If the request from page A to page B happens to be invoked by a POST
form, then you need to define the parameters as input fields of the form. If you want to hide them from the view, then just use <input type="hidden">
.
<form method="update.jsp" action="post">
...
<input type="hidden" name="userid" value="${user.id}">
<input type="hidden" name="fieldid" value="${field.id}">
</form>
This way they'll be as expected available by request.getParameter()
in update.jsp
.