I would like to have certain objects accessible in every page of my webapp.
I have a JavaScript menu that I want to generate dynamically from the DB, and as the menu is on every page, I will need the DAo object in every page.
Ideally I could use <jsp:useBean> tag to retrieve them in the page.
What is the best way to achieve this ?
Do I need to place them in the ModelAndView in every controller that I have, or should I override DispatcherServlet and stick them in the page context ?
But how about simple JSP files that do not use controller ?
Thanks for any help
Matt


Reply With Quote