Article View: cn.bbs.comp.lang.java
Article #23146Error:Unable to compile class for JSP
From: ɵ�Ǻ�
Date: Thu, 14 Aug 2003 18:14
Date: Thu, 14 Aug 2003 18:14
32 lines
1585 bytes
1585 bytes
*****************index.jsp
<html>
<head>
<title>JavaBean ����</title>
</head>
<body>
<jsp:useBean id="helloBean" scope="session" class="helloWorld" />
<%= helloBean.getHi() %>
<hr>
<%
helloBean.name = "JSP";
out.print(helloBean.getHi());
%>
</body>
</html>
**************************helloWorld.java
public class helloWorld {
public String name = "My first bean";
public String getHi()
{
return "Hello from " + name;
}
}
ʹ�õ���jswdk-1.0.1�������ļ�������webpages�£��������Dz��У�����useBean��pa
ram���ò��ˣ�ȫ������?
Ϊʲô��������
jdk��1.3
--
[m[1;35m�� ��Դ:������δ��վ bbs.pku.edu.cn��[FROM: 219.238.245.7][m
Technical Details
Message-ID:
<47ebKh$A8U@bbs.pku.edu.cn>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!newsfeed.media.kyoto-u.ac.jp!newsgate.cuhk.edu.hk!news.zixia.net!news.happynet.org!PKUShow Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB X-Google-Thread: f6cb0,1d576edd2b0581c0,start X-Google-Attributes: gidf6cb0,public X-Google-ArrivalTime: 2003-08-14 11:15:06 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!newsfeed.media.kyoto-u.ac.jp!newsgate.cuhk.edu.hk!news.zixia.net!news.happynet.org!PKU From: shahehe@bbs.pku.edu.cn (ɵ�Ǻ�) Newsgroups: cn.bbs.comp.lang.java Subject: Error:Unable to compile class for JSP Date: 14 Aug 2003 18:14:53 GMT Organization: ����δ��վ Message-ID: <47ebKh$A8U@bbs.pku.edu.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Filename: Java/M.1060884715.A Lines: 32