Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

How to get the value of ${requestScope.list[]} on the next servlet page in the below code?

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>

user-image
Question ajoutée par himanshu mittal
Date de publication: 2013/08/31
Bassem Zohdy
par Bassem Zohdy , Senior Software Architect , HelpAG

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()

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?