jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brehm, Robert P" <robert.p.br...@office.xerox.com>
Subject Correction: Overriding a Servlet Context Parameters
Date Wed, 29 Sep 2004 00:57:01 GMT

All,

This is the current location for the servlet config code:

public void setUp() throws Exception {
	sc = (AbstractServletContextWrapper) this.config.getServletContext();
	String hostname = (String) sc.getInitParameter("serverhost");
	int port = Integer.parseInt((String) sc.getInitParameter("serverport"));
	sc.setInitParameter("serverhost","localhost");
	sc.setInitParameter("serverport","7000");
	hostname = (String) sc.getInitParameter("serverhost");
	port = Integer.parseInt((String) sc.getInitParameter("serverport"));
}

Bob Brehm
Software Engineer
Xerox Corp.

Mime
View raw message