Article View: cn.bbs.comp.lang.java
Article #23219���һ����������
From: �ٷ���ǿ�
Date: Wed, 13 Aug 2003 08:38
Date: Wed, 13 Aug 2003 08:38
31 lines
1719 bytes
1719 bytes
һ���ij������ʱ����ʾ��
helloWWW.java:9: cannot resolve symbol
symbol : variable out
location: class HelloWWW
out.println("<html>\n" +
^
1 error
��֪��������ˣ����λ��Ϻָ�̣�thanks
Դ��������
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class HelloWWW extends HttpServlet{
public void doGet(HttpServletRequest request,HttpServletResponse
response)
throws ServletException,IOException{
response.setContentType("text/html");
out.println("<html>\n" +
"<head><title>Hello WWW </title></head>\n" +
"<body> \n" +
"<h1>Hello WWW </h1> \n" +
"</body></html>");
}
}
--
[m[1;31m�� ��Դ:������δ��վ bbs.pku.edu.cn��[FROM: 218.5.0.233][m
Technical Details
Message-ID:
<47dWkQ$A0K@bbs.pku.edu.cn>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!216.170.153.135.MISMATCH!tdsnet-transit!newspeer.tds.net!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!maily.cic.tsinghua.edu.cn!news.happynet.org!PKUShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,GB X-Google-Thread: f6cb0,e16c4917f80a1f4d,start X-Google-Attributes: gidf6cb0,public X-Google-ArrivalTime: 2003-08-13 01:39:25 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!216.170.153.135.MISMATCH!tdsnet-transit!newspeer.tds.net!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!maily.cic.tsinghua.edu.cn!news.happynet.org!PKU From: xingkongsky@bbs.pku.edu.cn (�ٷ���ǿ�) Newsgroups: cn.bbs.comp.lang.java Subject: ���һ���������� Date: 13 Aug 2003 08:38:14 GMT Organization: ����δ��վ Message-ID: <47dWkQ$A0K@bbs.pku.edu.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Filename: Java/M.1060763834.A Lines: 31