Forums Register Login

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

+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
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...
+Pie Number of slices to send: Send
 

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
+Pie Number of slices to send: Send
many thanks, it helped a lot :-)
It means our mission is in jeapordy! Quick, read this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1300 times.
Similar Threads
EJB injection nullpointer and jsf grammar not found
Doubt in ServletContextListener
Deployment Exception
ELResolvers not registered with the JSP container
Regarding order of elements in web.xml
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 18, 2024 21:24:40.