Win a copy of Spark in Action this week in the Open Source Projects forum!

Big Cat

Greenhorn
+ Follow
since Oct 30, 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
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Big Cat

in your JSP page, "out" is instance of class JspWrite which entends from java.io.Writer. when you call out.write(int i) it uses java.io.Writer method:
write(int c)
Write a single character.
when you call out.print(int i) it uses JspWriter method:
print(int i)
Print an integer.
that is the reason you got the output of "d 100".
wish that will help.
Big Cat
Question Bank ID : 52 Section 3 - The Servlet
<web-app>
<servlet>
.....
</servlet>
<listener>
<listener-class>com.javaranch.LogListener</listener-class>
</listener>
</web-app>
The above entry in the Deployment Descriptor(DD) will result in which of the following:
(giving correct answer: )
The webapp will not be loaded due to a parse exception of the DD
Based on web-app_2_3.dtd, it should be ok.. did i miss anything?