This week's book giveaway is in the Flex forum.
We're giving away four copies of Flex 4 in Action and have Tariq Ahmed, Dan Orlando, John C. Bland II & Joel Hooks on-line!
See this thread for details.
[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Win a copy of Flex 4 in Action this week in the Flex forum!
Reply Bookmark it! Watch this topic JavaRanch » Forums » Professional Certification » Web Component Certification (SCWCD)
 
RSS feed
 
New topic
Author

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

Maciek Mike
Greenhorn

Joined: Feb 03, 2010
Messages: 22

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?

SCJP 5.0 (94%), SCJD (388/400), SCWCD (97%)
Ankit Garg
Bartender

Joined: Aug 03, 2008
Messages: 6335

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...

SCJP 6.0 98%, SCWCD 5 98%, Javaranch SCJP FAQ, SCWCD Links
Luis Centeno
Ranch Hand

Joined: Jul 31, 2009
Messages: 31

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

SCJP 6
Maciek Mike
Greenhorn

Joined: Feb 03, 2010
Messages: 22

many thanks, it helped a lot :-)

SCJP 5.0 (94%), SCJD (388/400), SCWCD (97%)
 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Professional Certification » Web Component Certification (SCWCD)
 
RSS feed
 
New topic
IntelliJ open source