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 [EMAIL PROTECTED]  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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to