getting result sets back from many classes and Display
843836Sep 8 2004 — edited Sep 8 2004Ok I have a few classes that my jsp has to interact with, but I cant figure out how they should interact and which pages to do imports.
First of all I need to keep track of session in each page or in a header to see if that user is logged in or not. If they are then they get to see more information than a person not logged in. The person not logged in still gets to search the database for info, but certain info is not available to them.
The java code has already been written, I need to get back the result sets from the query, and display the info.
First in a results.jsp page that has all the records retrieved and some info, and second details.jsp page that displays info after you click on one of the results from the results.jsp page.
Now, I know I need to pass the QueryBuilder class a term or two, but how do I get my results back?. After I get it back I have to call other classes that manipulate the data that I get back and depending on if you are logged in or not display it a certain way. I know this is very hard to follow along. I have all the code. even w hat the jsps. should look like, but I don't have it implemented to work with the app.