Normally they contain no *.class files, but it is possible to precompile your JSPs, in which case they behave like Servlets. files.
The magic of *.war files is their completeness. All you need do is drop the *.war file in the run directory of any servlet womb, and that is all it needs to run the application. The womb can find out everything it needs to know primarily by examining the web.xml enclosed file. This works across platforms and across vendors. Sun nailed down the specifications of the *.war file in a platform-independent way. Its a bloody miracle, and something Sun deserves kudos for.
Here is what a simple war file looks like:
Here is what a simple web.xml file looks like:
![]() |
and suggestions to improve this page to Roedy Green : | ||
| Canadian Mind Products | |||
| mindprod.com IP:[65.110.21.43] | |||
| Your face IP:[38.103.63.18] | The information on this page is for non-military use only. | ||
| You are visitor number 37,897. | Military use includes use by defence contractors. | ||
| You can get a fresh copy of this page from: | or possibly from your local J: drive (Java virtual drive/Mindprod website mirror) | ||
| http://mindprod.com/jgloss/warfile.html | J:\mindprod\jgloss\warfile.html | ||