scwcd的考试,测试代码,如果希望参加此类考试将非常的有帮助

源代码在线查看: servleta.java

软件大小: 132 K
上传用户: sy780415
关键词: scwcd 测试代码
下载地址: 免注册下载 普通下载 VIP

相关代码

				package scwcd.lab02;
				
				import java.io.*;
				import javax.servlet.*;
				import javax.servlet.http.*;
				
				public class ServletA extends HttpServlet {
				  public void doGet(HttpServletRequest request,
				                    HttpServletResponse response)
				              throws IOException, ServletException{
				    response.setContentType("text/html");
				    PrintWriter out = response.getWriter();
				    out.println("");
				    out.println("This is generated by ServletA!");
				    out.println("");
				
				    String path = "/servlet/exercise.ch02.ServletB";
				    RequestDispatcher rd = request.getRequestDispatcher(path);
				    rd.include(request, response);
				    out.println("");
				    out.println("Returned from ServletB.");
				    out.println("");
				  }  
				}   			

相关资源