• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Order of elements in Deployment descriptor

 
Sam Cala
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Is there some specific ordering of elements that need to be maintained within web.xml document.
 
Ricardo Cortes
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the post detailing my thoughts on the exam...
- Memorize all the major elements of the <web-app> element. I counted 11 of them and used the following phrase to remember them:
"Can Larry Show Steve Some Ways Everyone Talks Slowly, Living Slowly"?
The letters correspond to elements and their ordering in the <web-app> element:
<context-param>
<listener>
<servlet>
<servlet-mapping>
<session-config>
<welcome-file-list>
<error-page>
<taglib>
<security-constraint>
<login-config>
<security-role>
Before the exam even started, I wrote them all down, including all of their possible subelements. Then, all you have to do is refer to the paper when taking the test.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic