I guess I'll preface this by saying I'm new to servlets/JSP's. Alright, here goes:
I have a
JSP that successfully iterates through a given list of objects and displays the pertinent information. But, for each of those objects, lets call them Requests, there is one more piece of information I would like to display and this information is not directly stored in the Request. Instead, every Request holds an ID number identifying another object, a User, in my database. What I want is for the JSP to display not just the Request's information but also some of the associated User's information.
Here's what I think might be a good solution. After my
servlet obtains a list of Requests from my database, it will iterate through them and find the associated User object. It will then bundle the User and Request objects together in some kind of Tuple object and send the list of Tuples down to the JSP instead of a list of Requests. I think this will work fine but I wanted to see what other people thought of it before I started implementing.