tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 6519] - Problem with HTMLManagerServlet when running JDK1.4
Date Tue, 19 Feb 2002 09:20:18 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6519>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6519

Problem with HTMLManagerServlet when running JDK1.4





------- Additional Comments From j.schwoerer@web.de  2002-02-19 09:20 -------
Workaround:
I solved the problem with the following code change in method doGet():

PrintWriter writer = null;

if (command == null) {
	response.sendRedirect(request.getRequestURI()+"/list");
}
else {
	writer = response.getWriter();

	// Process the requested command
	if (command == null) {
		response.sendRedirect(request.getRequestURI()+"/list");
	} else if (command.equals("/install")) {
		install(writer, path, war);
	} else if (command.equals("/list")) {
		list(writer);
	} else if (command.equals("/reload")) {
		reload(writer, path);
	} else if (command.equals("/remove")) {
		remove(writer, path);
	} else if (command.equals("/sessions")) {
		sessions(writer, path);
	} else if (command.equals("/start")) {
		start(writer, path);
	} else if (command.equals("/stop")) {
		stop(writer, path);
	} else {
		writer.println(sm.getString
("managerServlet.unknownCommand",command));
	}

	// Finish up the response
	writer.flush();
	writer.close();
}

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message