Register now or log in to join your professional community.
Assume you have a jsp page and the code is <a href="servletclass">${requestScope.list[0]}</a> <a href="servletclass">${requestScope.list[1]}</a> <a href="servletclass">${requestScope.list[2]}</a>
If you want to share any values between2 pages, you have2 options, send it in a form in input field text or hidden or using any other form component and submit it
<form>
<a href="servletclass">${requestScope.list[0]}</a>
<input type="hidden" value="${requestScope.list[0]}"/>
...
<input type="submit"/>
</form>
or use the session of the user.
request.getsession().setAttribute()
and
request.getsession().getAttribute()