You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by "Brehm, Robert P" <ro...@office.xerox.com> on 2004/09/29 02:57:01 UTC
Correction: Overriding a Servlet Context Parameters
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.