Arthur Clarke

Greenhorn
+ Follow
since Aug 22, 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 Arthur Clarke

Sun please try to do so, it will be even more interesting:
add this line into your test.jsp file:

and The response of http://localhost:8080/test.jsp will be
java.io.IOException error page!
exception=javax.servlet.ServletException: mellon io excpeiton javax.servlet.error.exception=null
My answer is this:
request.getAttribute("javax.servlet.error.exception") differs from
request.getAttribute("javax.servlet.jsp.jspException");/*exeption in jsp*/.
Good luck!
----------------
Arthur Clarke
SCJP2
Dinesh and boyet, a thousand thanks for your answers.
I found out the name of that mystery class. For Tomcat/3.2.1
it is: org.apache.tomcat.facade.HttpServletRequestFacade
and for Tomcat/4.0.6: org.apache.catalina.servlets.InvokerHttpRequest

[ January 18, 2003: Message edited by: Arthur Clarke ]
Could anyone explain, please?
HttpServletRequest is Interface, so all Methods in it are abstract.
But which class are these Methods implemented in?
For example, in this code getMethod() works but where is it implemented?

Thanks in advance.
Peter Tran,
Thank you very very much!!!
20 years ago
In the Logo License Contract I have read this:
Pleas return this signed, original completed form to BDI Fulfillment, PO Box 1156, Salem, UT 84653-1156, ATTN: Sun Educational Services Certification Customer Support Manager.
My questions may be very na�ve, but I would like to be 100% sure.
So my questions are:
1. Must I write “Sun Microsystems, INC.” at the beginning of the address or not?
2. Where to write the word “USA” at the end of address or after UT 84653-1156?
In my humble opinion this is the right way of writing the address:
“Sun Microsystems, INC.,
BDI Fulfillment, PO Box 1156,
Salem, UT 84653-1156,
USA,
ATTN: Sun Educational Services
Certification Customer Support Manager. “
Thanks in advance.
20 years ago
Congratulations Vijay!
You wrote :
2. A
Not sure, though,
Foo's implementation is unspecified, it might have passed the bar reference to some other object.
Pleas try this. I think, it will make you sure:
----------------------------------------
public class Test {
public static void main(String args[]) {
Foo foo = new Foo();
Bar bar = new Bar();
// foo.somemethod(bar); //please remove comments
bar = null;
foo = null;
System.gc();
System.out.println(Foo.b);
}
}
class Foo{
static Bar b;
public void somemethod(Bar b){
this.b = b;
}
}
class Bar{
public void finalize(){System.out.println("finalize");}
}
20 years ago
Thank you, Vin Kris.
It works!!!
Congratulations on your success.
I will be much obliged to you, if you can email me your summaries: mysfi@mail.ru
20 years ago
Hello everybody.
Can anyone explain what are
public static Integer getInteger(String nm)
public static Integer getInteger(String nm, int val) for?
In Java 2 SDK, Standard Edition Documentation I have read this:
getInteger determines the integer value of the system property with the specified name.
If there is no property with the specified name, if the specified name is empty or null, or if the property does not have the correct numeric format, then null is returned.
I have tested on my computer (OS -Windows 98) this program:
import java.util.*;
class Test {
public static void main(String[] args) {
Properties prop = new Properties();
prop = System.getProperties();
for(Enumeration enum = prop.propertyNames(); enum.hasMoreElements(); ) {
System.out.println(Integer.getInteger((String)enum.nextElement()));
}
}
}
The result was a list of null-s.
So if all integer value of the system property are null what are getInteger for?
Thank you very much. :roll:
[ October 02, 2002: Message edited by: ArthurClarke ]
[ October 02, 2002: Message edited by: ArthurClarke ]
[ October 02, 2002: Message edited by: Arthur Clarke ]
[ October 02, 2002: Message edited by: Arthur Clarke ]