我在一个jsp文件中定义了一个类,并保存为node.jsp 我想在另外一个jsp文件中使用这个类,但是有错误。 我都定义的类(node.jsp) [code]<%! class CWLinkList // { ChineseWords CWList_FirstNode; //定义第一个节点 CWLinkList() //建立空链表 { CWList_FirstNode=null; } CWLinkList(String data) //建立一个只有一个节点的链表 { CWList_FirstNode=new ChineseWords(data); } int SearchData(String data) //遍...
by ufoace - Java - 2006-04-23 11:58:09 阅读(5097) 回复(2)
在论坛也找帖子看了,修改了还是不行,一访问不存在的页面就会出现windows-IE的404错误页面,而访问不存在的目录时则会出现apache默认的403error 在www根目录下建立的有error/error.html, 以下节选httpd(win32): ................ # Some examples: #errorDocument 500 "The server made a boo boo." errorDocument 404 /error.php #errorDocument 404 "/cgi-bin/missing_handler.pl" #errorDocument 402 http://www.example.com/...
[code] public interface Service { public void serve(InputStream in, OutputStream out) throws IOException; } public static class Timer implements Service { public void serve(InputStream i, OutputStream o) throws IOException { PrintWriter out = new PrintWriter(o); out.print(new Date() + "\n"); out.close(); i.close(); } } [/code] error:Illegal modifier for the class Timer; only public, abstract & fi...
在我安装php5-dom,php5-xmlreader,php5-xmlrpc包后解决。 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/32622/showart_514875.html
运行下面一行代码,连接数据库时候出错 报的错误是: Catchable fatal error: Object of class PDO could not be converted to string in /www/infomix.php on line 3
我自己定义的头文件中,在编译时在首个结构体前抱错,类型如题。 代码如下: #ifndef PARSE_INCLUDED #define PARSE_INCLUDED #define XMLCALL #define XMLPARSEAPI __declspec(dllexport) #ifdef __cplusplus extern "C" { #endif typedef struct decl_st{ char *version; int versionLen; /*目前在xmpp系统中,以下两种情况是不会出现的*/ char *encoding; int encodingLen; char *standalone; int standaloneLen; }XM...
•类的详细描述:类是一个域和方法的命名集合,域持有数据的值,方法操作这些这些值。 •一个类建立了一个域的集合:它定义了一个对象的属性。属性的类型是其它类、原子数据类型(如boolean或int)和接口。 •类设计者应该可以合理化类属性间的关联。 •类名应该既可以反映属性的意义,又能代表类的行为。 •一个类必须支持所有它所定义的行为,包括在超类中定义的和在类所支持的接口中定义的。(不支持超类...
HOSTNAME = hostname e1000g0 192.168.0.7 You can check the log file "/var/adm/log/hostname_NIC_Packets_error.log" ----------------------------------------------------------------- NIC Detect Packet Input error on [ e1000g0 ] :::::::::::::: /tmp/NIC_Compare.e1000g0 :::::::::::::: 07/15/08 00:00:00 e1000g0 Inputerror: 60 Outputerror: 0 07/16/08 00:00:01 e1000g0 Inputerror: 86 Outputerror: 0 Diff_Pac...
080628 16:50:23 mysqld started InnoDB: The first specified data file ./ibdata1 did not exist: InnoDB: a new database to be created! 080628 16:50:25 InnoDB: Setting file ./ibdata1 size to 10 MB InnoDB: Database physically writes the file full: wait... 080628 16:50:26 InnoDB: Log file ./ib_logfile0 did not exist: new to be created InnoDB: Setting log file ./ib_logfile0 size to 5 MB InnoDB: Databa...