这样的需求如何配置web.xml
哒哒路 2009-09-10 09:03:16 1.我做了个项目是用(spring+hibernate+struts1.2)
2.数据库是用hibernate生成的
Configuration cfg = new Configuration().configure();
SchemaExport schemaExport = new SchemaExport(config);
schemaExport.create(true, true);
3.当tomcat启动时我设置了一个页面,让用户设置数据名,选择数据库类型,然后根据用户填的这个
页面生成后台数据库,表,
问题:
一开始所有的信息都在web.xml中配置好了,spring,struts相关配置都配置在里面,我想让用户填完我设置的那个页面的信息后,判断数据库是否建好,然后再加载web.xml文件中配置的spring,struts相关信息,而不是在开始启动tomcat就加载所有信息,该如何做配置?