ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

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
تم إضافة السؤال من قبل himanshu mittal
تاريخ النشر: 2013/08/31
Bassem Zohdy
من قبل 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()

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟