JSP session query on page load
How would one go about loading user content based on "user id" stored in a session attribute?
I need to load jsp pages that uses database query using "user id" during page load. Correct me if you think there are ways to use servlet to execute session query to database without adding a request attribute when forwarding to jsp page.
E.g. Calling books.jsp when user is logged in creates multiple database queries(create bean to use for page) based on session attribute data that then displays data on the jsp page.
I hope this is not too hard to understand.