Answer the question
In order to leave comments, you need to log in
How to pass List to JSP page?
Good evening!
Need to pass list to .jsp page to table! The request to the database is valid, checked. If you pass the size of the list through the scriptlet, it says that the list is empty!
Here is the project structure:
Here is the servlet itself:
JSP page:
And here is the output in the browser:
Answer the question
In order to leave comments, you need to log in
You have a typo in your code: in <td> you need to refer to the list element - studentList, not list, for example: ${studentList.first_name}. Well, place <td> inside <tr>.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question