• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does <listener> element cannot be before <context-param>

 
Maciek Mike
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I'm preparing for SCWCD.

In one of mock questions is mentioned that <listener> element cannot be before <context-param> in web.xml.
I think that is not true. Am I right?
 
Ankit Garg
Sheriff
Posts: 9578
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the order used to matter in earlier versions of Servlets where the web.xml was validated against a DTD, this is however no longer applicable...
 
Luis Centeno
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the order used to matter in earlier versions of Servlets where the web.xml was validated against a DTD, this is however no longer applicable...


This is correct...I tried deploying the following...



...and there was no problem, listener perfectly worked.

Hope this will help you...regards
 
Maciek Mike
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
many thanks, it helped a lot :-)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic