Dear Ranchers, I'm doing a project in JSP and MySQL. In each and every page, instead of giving the title for the html page, is there any way to put the title in web.xml, so that Even if I want to change the title, i can just edit in the web.xml, so that it can reflect other pages also..
I create screen.xml files for this... one per-screen in, for example /WEB-INF/screens/documentation/contents.xml:
Now just use XPath to query what you need. I have a ScreenFactory object which creates a simple bean from the configuration. I also store 'fragments', CSS files, JS files and Meta data in here.