当前位置: 技术问答>java相关
这个程序不能用jdk编译,该如何?
来源: 互联网 发布时间:2017-03-23
本文导语: 程序: import java.io.*; import java.util.*; import javax.servlet.*; import java.servlet.http.*; public class HelloWorld extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) ...
程序:
import java.io.*;
import java.util.*;
import javax.servlet.*;
import java.servlet.http.*;
public class HelloWorld extends HttpServlet
{
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws IOException ,ServletException
{
response.setContentType("text/html");
PrintWriter out=response.getWrite();
out.println("");
out.println("");
out.println("
out.println("
out.println("
import java.io.*;
import java.util.*;
import javax.servlet.*;
import java.servlet.http.*;
public class HelloWorld extends HttpServlet
{
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws IOException ,ServletException
{
response.setContentType("text/html");
PrintWriter out=response.getWrite();
out.println("");
out.println("");
out.println("
$nbsp;
");out.println("
$nbsp;
");out.println("