String value = getServletContext().getInitParameter("name"); XML_FILE = ctx.getInitParam("xml_file_name"); SHEET_FILE = ctx.getInitParam("xsl_sheet_name");
String value = ctx.getInitParameter("name"); XML_FILE = ctx.getInitParameter("xml_file_name"); SHEET_FILE = ctx.getInitParameter("xsl_sheet_name");
	public void doGet(HttpServletRequest request, HttpServletResponse response)	throws IOException, ServletException {		/** Servlet API 2.1: Web App Root/WEB-INF/web.xml includes		 * context-param name & value elements; this retrieves 'em.		 */		ServletContext ctx = getServletContext();             String value = getServletContext().getInitParameter("name");		XML_FILE = ctx.getInitParam("xml_file_name");		SHEET_FILE = ctx.getInitParam("xsl_sheet_name"); 		String browser = request.getHeader("user-agent");		PrintWriter out = response.getWriter();		// At this point in time, MSIE5 is the only one that can do XML.		if (browser.indexOf("MSIE5") != -1) {			out.println("<?xml version=\"1.0\"?>");			output_stylesheet_ref(out);			output_body(XML_FILE, out);		} else {			// Any other browser, output HTML			transform_into_html(out);		} 	}