Tony Ge

Greenhorn
+ Follow
since Sep 05, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Tony Ge

I want to make a chat sw like icq!
only for strengthen the knowledge about javax.swing,javax.io,and java.net!!
i konw swing is the lagest package in java,and java.net and java.io are very important in java's net programing,so i want to master them as i can!!
could u give me a simple sample!
thanx!!
15 years ago
class TestFinal{
final int f; //-----2
TestFinal(){
return ;//----4
}
public static void main(String[] args)
{
TestFinal t = new TestFinal();
System.out.println("Final int f = " + t.f);
}
}
the line 2 declare a final variable!!the coding can compile and print : Final int f=0.
but if u remove line 2: return;
then the coding can not compile and the compile error is like so: varibale f may not be initialize!
who can explain it??/
thanx David O'Meara !
but fro some reason,the class will be used doesn't under the $tomcat_home$,so I will import the other package(outside the $tomcat_home$)!!
thanx!!
15 years ago
the servlet in IDE complies ok,but in browers occurs errors,I think it is the tomcat's classpath 's problem!!
My OS is win200 prefessional,I had set the classpath on OS,but the tomcat didn't catch the os'classpath,so I want to set the classpath in tomcat,i add the "set classpath=......" in tomcat_folder/bin/startup.bat ,but no effect,the tomcat's ver is 4!!
how to set the tomcat's classpath?/
thanx!!!
15 years ago
followed Mike Curwen ,i do it successfully!!
many thanx!!
15 years ago
thank meng tan,mike curwen
but i use:
request.getRequestDispatcher("/test.htm").include (request,response);

it doesn't occurs any error or exception,but it has not effect,why??
thanx!!
15 years ago
like the jsp's include:
<%@ page include="somefile.jsp"%>
could servlet performs as above!!
if can, how to do??
thanx!!!
15 years ago
may be you can delete the web.xml in the folder you created!!
try !!!
15 years ago
test successfully!!!
much thanx!!!
16 years ago
if the test.java were a servlet and can be browsen in :
http://localhost:8080/hello/test
hello is the directory under :tomcat_home/webapps/root
where should I put the test.java in ??
or how i sould modify the tomcat's servlert config??
16 years ago
The code is:
parent.close();
16 years ago