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 5247] New: - HEAD method does not work for Test in WSPACKb05
Date Mon, 03 Dec 2001 19:42:44 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=5247>.
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=5247

HEAD method does not work for Test in WSPACKb05

           Summary: HEAD method does not work for Test in WSPACKb05
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: jian.cai@sun.com


WSPACKb05 fails for the HEAD testing. The following test returns "null" when
deployed in WSPACKb05: 


package servlets.stdPos;

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;

public class Test15 extends HttpServlet 
{

	public void doGet ( HttpServletRequest req, HttpServletResponse resp ) 
			throws ServletException,IOException
	{
		PrintWriter out = resp.getWriter();
		resp.setContentType("text/html");

		out.println(" <HTML> ");
		out.println(" <HEAD>");
		out.println(" <TITLE>Test15 servlet : A servlet which checks the doHead
method  </TITLE> ");
		out.println(" </HEAD> ");
		out.println(" <BODY BGCOLOR=white> ");

		out.println(" <CENTER> ");
		out.println(" <FONT COLOR=BLUE> ");
		out.println(" <STRONG>Test Output</STRONG> ");
		out.println(" </FONT> ");
		out.println(" </CENTER> ");
		out.println(" <HR> ");

		out.println("I am doGet method of Test16 .");
                out.println("Did you use HEAD HTTP method or not? <br>");
                out.println("If yes then there is some ERROR. Test is <FONT
size=+1 color=red>FAILED.</FONT><BR>");
                out.println("Else Please use HEAD method in the request for this
Test.<BR>");

		out.println(" <HR> ");
		out.println(" </BODY> ");
		out.println(" </HTML> " );
		out.flush();
	
	}
	public void doHead ( HttpServletRequest req, HttpServletResponse resp ) 
			throws ServletException,IOException
	{
		PrintWriter out = resp.getWriter();
		resp.setContentType("text/html");

		out.println(" <HTML> ");
		out.println(" <HEAD>");
		out.println(" <TITLE>Test15 servlet : A servlet which checks the doHead
method  </TITLE> ");
		out.println(" </HEAD> ");
		out.println(" <BODY BGCOLOR=white> ");

		out.println(" <CENTER> ");
		out.println(" <FONT COLOR=BLUE> ");
		out.println(" <STRONG>Test Output</STRONG> ");
		out.println(" </FONT> ");
		out.println(" </CENTER> ");
		out.println(" <HR> ");
		out.println("I am doHead method of Test15. You are PASSED ");
		out.println(" <HR> ");
		out.println(" </BODY> ");
		out.println(" </HTML> " );
		out.flush();
	
	}


}

--
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