Tu Ran

Ranch Hand
+ Follow
since Feb 09, 2002
Merit badge: grant badges
For More
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
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Tu Ran

ok,i see it immediately
but have more information about quaility?
Can you tell me what it is the merits and defects in the all kinds of java application servers such as jrun,weblogic,and apache so so....
thanks a lots
Can you tell me what it is the merits and defects in the all kinds of java application servers such as jrun,weblogic,and apache so so....
thanks a lots
22 years ago
William Brogden
Thanks for your answer
22 years ago
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class toServlet1 extends HttpServlet{
public void doGet(HttpServletRequest req,HttpServletResponse res)
throws IOException,ServletException{
try{
<font color="red">this.getServletConfig().getServletContext().
getRequestDispatcher("/x1.jsp").forward(req,res);</font>
}catch(Exception e){
e.printStackTrace();
}
}
}
//i can' understand this sentence:
this.getServletConfig().getServletContext().
getRequestDispatcher("/x1.jsp").forward(req,res);
//please explain i ,thanks
22 years ago
HI:what'your meaning ,the file is right:
E:\jserv\conf\jserv.conf ,because my file is
assined :e:\jserv\conf\jserv.conf(jsver'directory)
e:\apache\....(apache's directory)

how can i do now~~please tell me~~??
urgent!!!
22 years ago
when I install tomcat,apache,and jservt,
tomcat,and apache are all good independently;
but,when i was install jserv,error occur:
[error] Access to config file e:/apache/E:\jserv\conf\jserv.conf denied:not a valid filename
fopen ermission denied
apache:could not open document config file e:/apache/E:\jserv\conf\jserv.conf
??
but the file name:E:\jserv\conf\jserv.conf ,is correct,i have gone over it,?what's wrong with the
configure?
22 years ago
I passed SCJP examination yesterday,now I want to
further studying in java speially on EJB and J2ee,
Cauld you tell me how I can begin? and How can
I get more information about it?
Thanks a lots
Ran tu
class A {
A() throws Exception {
System.out.println ("Executing class A constructor");
throw new IOException(); //error? why?
}
}
class B extends A {
B() {
System.out.println ("Executing class B constructor");
}
public static void main ( String args[] ) {
try {
A a = new B();
} catch ( Exception e) {
System.out.println( e.getMessage() );
}
}
} //what's wrong with the codes? and how can you correct it?
import java.io.IOException;
class subEx extends IOException {}
class A{
public static void main(String[]args)throws Exception{
try{
method();
}catch(IOException e){
System.out.println("Main()--1 exception");
}catch(Exception e){
System.out.println("Main()--2 exception");
}
}
static void method() throws IOException{
try{
throw new subEx();
}catch(IOException e){
System.out.println("method()---1 exception");
throw new subEx();//why can't be
//caught in the mehod() and must go to the main ?
}catch(Exception e){
System.out.println("method()---2 exception");
}
}
}
//Why the example's result is:
//method()---1 exception and Main()---1 exception
//I really want to know in the method() ,
//why the second " new subEx()"can't be caught
//in the method()?
[ March 04, 2002: Message edited by: Tu Ran ]
HI:Matthew
I see your meaning but how I can use in the subclasee of FilterInputStream?
Can you give me a example?
//please looking this code:
import java.io.*;
class OuterClass{
void main(String[]args){
try{
FilterInputStream xx=new FilterInputStream(new FileInputStream("tomato"));
}catch(Exception ioe){
System.out.println("file no");
}finally{
System.out.println("file found");
}
}

}//when I comile it found a erro:"FilterInpuStream has protected access in java.io.FilterInputStream",what's the meaning?why?
Rajinder Yadav
I am relly thanks your help~~in java~~
Please looking this code:
class AQuestion {
static private int i = giveMeJ();
static private int j = 10;

static private int giveMeJ() {
return j;
public static void main(String args[]) {
System.out.println((new AQuestion()).i);
}
} //why print i,is 0,??
class gc1{
static Object xx;
public static void main(String[]args){
Object oa1=new Object[10];
Object oa2=new Object[0];
Object[] oa3=new Object[0];
System.out.println(oa1);
System.out.println(oa2);
System.out.println(oa3);
System.out.println(xx);
}
}//what's the different from oa1,oa2,oa3,xxand what's the meaning oa1,oa2,oa3,xx?I can't get it?