aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Question regarding plugability Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Question regarding plugability " Watch "Question regarding plugability " New topic
Author

Question regarding plugability

varun Dosapati
Ranch Hand

Joined: Nov 18, 2010
Posts: 30

if we see the example from the servlet spec 3.0

web-fragment.xml
<web-fragment>
<name>MyFragment1</name>
<ordering><after><name>MyFragment2</name></after></ordering>
...
</web-fragment>
web-fragment.xml
<web-fragment>
<name>MyFragment2</name>
..
</web-fragment>
web-fragment.xml
<web-fragment>
<name>MyFragment3</name>
<ordering><before><others/></before></ordering>
..
</web-fragment>
web.xml
<web-app>
...
</web-app>
In this example the processing order will be
web.xml
MyFragment3
MyFragment2
MyFragment1


From the spec


If a web-fragment.xml file does not have an <ordering> or the web.xml does
not have an <absolute-ordering> element the artifacts are assumed to not
have any ordering dependency.


So the result should be
MyFragment3
web.xml
MyFragment2
MyFragment1

Please correct me if I am wrong.

Thanks
Varun
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question regarding plugability