Tareq Shaheen

Greenhorn
+ Follow
since Jan 09, 2001
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 Tareq Shaheen

Ok, I'm using Oracle's JDeveloper 3.2 ( jdk1.2.2). The code I posted compiles and runs with no errors in Jdeveloper.
However, I tested this on the command line ( using javac directly ) and it does not compile ! .
Hi everyone,
I'm practicing nested classes. I've written this simple class:

public class OuterClass {
private static class InnerClass {
private InnerClass() {
System.out.println("in constructor" }
}
}
}
and another simple class to test:
public class TestClass {
public static void main(String[] args) {
OuterClass.InnerClass in= new OuterClass.InnerClass();
}
}
All classes compile and main method runs with no problem. Now I wonder what is the meaning of the private modifier here ??
Thanks
Thanks Simon,
I have the business logic in the Servlet which controls JSPs, so solution 2 seems to match my case. The reason I need this it to have the same error page whether an exception is generated in the Servlet or JSP pages.
22 years ago

I'm developing an application with one servlet which directs requests to the right jsp page. If an exception occurs in the servlet, is it possible to have this exception directed to the same page defined by the jsp errorpage directive?
22 years ago
Java report is a good choice
www.javareport.com
------------------
23 years ago