eXtreme Development

Java - recarrear servlet

package utils;

import data.VendorDB; import javax.servlet.*; import utilsDB.UtilityDB;

public class VendorListListener implements ServletContextListener {

public VendorListListener() { }

public void contextInitialized(ServletContextEvent event) { ServletContext sc = event.getServletContext(); java.util.ArrayList vendors = VendorDB.selectVendors(); sc.setAttribute("vendors", vendors); java.util.ArrayList sortSizes = UtilityDB.fillSizes(); sc.setAttribute("sortSizes", sortSizes); }

public void contextDestroyed(ServletContextEvent servletcontextevent) { } }

<Context path="" docBase="/webapps/client.com/servlets" reloadable="true" privileged="true"/>



SourceForge BootStrap