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

源代码在线查看: myfirstservlet.java

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

相关代码

				import java.io.*;
				import javax.servlet.*;
				import javax.servlet.http.*;
				
				public class MyFirstServlet extends HttpServlet {
				  public void doGet(HttpServletRequest request,
				                    HttpServletResponse response)
				              throws IOException, ServletException {
				    response.setContentType("text/html");
				    PrintWriter out = response.getWriter();
				    String name = request.getParameter("name");
				    out.println("");
				    out.println("");
				    out.println("");
				    out.println("Servlet Exercise");
				    out.println("");
				    out.println("");
				    out.println("Hello, " + name + " !");
				    out.println("");
				  }
				  public void doPost(HttpServletRequest request,
				                     HttpServletResponse response)
				              throws IOException, ServletException {
				    doGet(request, response);
				  }  
				} 			

相关资源