| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 436 人关注过本帖
标题:[求助]lervlet的问题
只看楼主 加入收藏
程序BUG
Rank: 1
等 级:新手上路
帖 子:60
专家分:0
注 册:2006-7-22
收藏
 问题点数:0 回复次数:0 
[求助]lervlet的问题
我想编译这个不成功.
 package test;
  import java.io.IOException;
  import java.io.PrintWriter;
  import javax.servlet.ServletException;
  import javax.servlet.http.HttpServlet;
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;
  public class Test extends HttpServlet {
  protected void doGet(HttpServletRequest request, HttpServletResponse response)
  throws ServletException, IOException {
  PrintWriter out=response.getWriter();
  out.println("<html><body><h1>This is a servlet test.</h1></body></html>");
  out.flush();
  }
  }
  C:\java\text.java:1: 非法字符: \12288
 package text;
^
C:\java\text.java:2: 非法字符: \12288
  import java.io.IOException;
^
C:\java\text.java:2: 非法字符: \12288
  import java.io.IOException;
^
C:\java\text.java:3: 非法字符: \12288
  import java.io.PrintWriter;
^
C:\java\text.java:3: 非法字符: \12288
  import java.io.PrintWriter;
^
C:\java\text.java:4: 非法字符: \12288
  import javax.servlet.ServletException;
^
C:\java\text.java:4: 非法字符: \12288
  import javax.servlet.ServletException;
^
C:\java\text.java:5: 非法字符: \12288
  import javax.servlet.http.HttpServlet;
^
C:\java\text.java:5: 非法字符: \12288
  import javax.servlet.http.HttpServlet;
^
C:\java\text.java:6: 非法字符: \12288
  import javax.servlet.http.HttpServletRequest;
^
C:\java\text.java:6: 非法字符: \12288
  import javax.servlet.http.HttpServletRequest;
^
C:\java\text.java:7: 非法字符: \12288
  import javax.servlet.http.HttpServletResponse;
^
C:\java\text.java:7: 非法字符: \12288
  import javax.servlet.http.HttpServletResponse;
^
C:\java\text.java:8: 非法字符: \12288
  public class Text extends HttpServlet {
^
C:\java\text.java:8: 非法字符: \12288
  public class Text extends HttpServlet {
^
C:\java\text.java:9: 非法字符: \12288
  protected void doGet(HttpServletRequest request, HttpServletResponse response)
^
C:\java\text.java:9: 非法字符: \12288
  protected void doGet(HttpServletRequest request, HttpServletResponse response)
^
C:\java\text.java:10: 非法字符: \12288
  throws ServletException, IOException {
^
C:\java\text.java:10: 非法字符: \12288
  throws ServletException, IOException {
^
C:\java\text.java:11: 非法字符: \12288
  PrintWriter out=response.getWriter();
^
C:\java\text.java:11: 非法字符: \12288
  PrintWriter out=response.getWriter();
^
C:\java\text.java:12: 非法字符: \12288
  out.println("<html><body><h1>This is a servlet test.</h1></body></html>");
^
C:\java\text.java:12: 非法字符: \12288
  out.println("<html><body><h1>This is a servlet test.</h1></body></html>");
^
C:\java\text.java:13: 非法字符: \12288
  out.flush();
^
C:\java\text.java:13: 非法字符: \12288
  out.flush();
^
C:\java\text.java:14: 非法字符: \12288
  }
^
C:\java\text.java:14: 非法字符: \12288
  }
^
C:\java\text.java:15: 非法字符: \12288
  }
^
C:\java\text.java:15: 非法字符: \12288
  }
^
C:\java\text.java:15: 需要 <标识符>
  }
^
C:\java\text.java:16: 非法字符: \12288
  
^
C:\java\text.java:16: 非法字符: \12288
  
^
C:\java\text.java:16: 需要 "class" 或 "interface"
  这是什么原因!!!!!
搜索更多相关主题的帖子: lervlet 
2006-08-08 23:23
快速回复:[求助]lervlet的问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.030970 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved