• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaRanch Mock Exam question

 
Bhumika Thakkar
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<web-app>
<servlet>
.....
</servlet>
<listener>
<listener-class>com.javaranch.LogListener</listener-class>
</listener>
</web-app>

the answer is ParseException.

???
Bhumika
 
Paul Bourdeaux
Ranch Hand
Posts: 783
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the question?
 
Bhumika Thakkar
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't remember the q but it was something like

"what would be the response from the container?"

answers
-------
load the listener as specified in dd
parse exception
... others.
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The JavaRanch Exam is for old versions. It is reffering the DD for the older version. In the Older version DD for web.xml, the order of the elements are important. you can not define <listener> after the <servlet>. Therefore it is giving the parsing error

I think this help you.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic