This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
Please suggest.

Posts: 14691
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let's say that each link retrieves data via servlets.
If the servlet forwards the response to the same jsp page, there should not be any problem.
The jsp page shows links and data grabbed from the request. If there's no data in the request, only links will be shown. If a servlet is called, it retrieves data from the db, puts it in an array (for example), and puts the array in the response. Then the servlet forwards the request back to the jsp.
The same jsp shows, but this time data will be displayed, as it has been put into the request.

I suggest that your friend read something about request forwarding.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!