473,396 Members | 1,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Difference of META-INF and WEB-INF

What META-INF and WEB-INF contains.
May 27 '07 #1
2 23522
sumittyagi
202 Expert 100+
What META-INF and WEB-INF contains.
These folders contains private information about the application.
META-INF
Now Meta-inf could contain information about the ejb components or any standalone application (desktop application, such as in swing). Its main content is Manifest.mf file. This file contains Meta-data, i.e data about data. for example in stand alone application it contains info about which class contains the main function, so that system could load that class.(a lot of other meta-data could be included in it.

WEB-INF.
Now web-inf contains information, and data about the web application. It contains servlet classes, and other library/utility classes; it could also contain properties files. It could contain any other information which you want to keep private.

That's All.
May 28 '07 #2
Each web application should be contained in a war (web archive) file. War files are nothing but a jar file containing atleast one descriptor called web.xml. The file structure of war file is:

Expand|Select|Wrap|Line Numbers
  1.  
  2.   /--
  3.  
  4.     |
  5.  
  6.     | WEB-INF
  7.  
  8.     |   |
  9.  
  10.     |   |-- WEB.XML (Deployment descriptor)
  11.  
  12.     |   |-- classes (Folder containing servlets and JSPs
  13.  
  14.     |
  15.  
  16.     | META-INF
  17.  
  18.     |   |
  19.  
  20.     |   |-- MANIFEST.MF
  21.  
  22.     |
  23.  
  24.     | all utility files and resources like error pages etc.
  25.  
Each enterprise bean is stored in a jar file. The jar file contains all standard files like manifest and atleast one additional file called ejb-jar.xml. The structure of a jar file is:

Expand|Select|Wrap|Line Numbers
  1.   /--
  2.  
  3.     |
  4.  
  5.     | META-INF
  6.  
  7.     |   |
  8.  
  9.     |   |-- MANIFEST.MF
  10.  
  11.     |   |-- ejb-jar.xml
  12.  
  13.     |
  14.  
  15.     | all classes as in a normal jar file.
  16.  
Both jar and war files are placed inside a ear (enterprise archive) file. The structure of an ear file is

Expand|Select|Wrap|Line Numbers
  1.   /--
  2.  
  3.     |
  4.  
  5.     | META-INF
  6.  
  7.     |   |
  8.  
  9.     |   |-- MANIFEST.MF
  10.  
  11.     |   |-- application.xml
  12.  
  13.     |
  14.  
  15.     | jar and war files.
  16.  
TODO may be we should add the structure of all the deployment descriptors here as well.


Cheers,
Sateesh.
May 28 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Cezary | last post by:
Hello. I was read PHP manual, but i'm not sure yet. Here is my meta tags in html: <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-2"> <META HTTP-EQUIV="Expires"...
1
by: Nick Mudge | last post by:
Hi, Does anybody know the performance difference between having your PHP code cached and just running your code with the zend optimizer? Is there much difference? Nick
21
by: ron | last post by:
Why doesn't this work? >>> def foo(lst): .... class baz(object): .... def __getitem__(cls, idx): return cls.lst .... __getitem__=classmethod(__getitem__) .... baz.lst = lst .... ...
5
by: Donald Firesmith | last post by:
Are html tags allowed within meta tags? Specifically, if I have html tags within a <definition> tag within XML, can I use the definition as the content within the <meta content="description> tag? ...
18
by: Haines Brown | last post by:
In XHTML docs, I find that the W3 Validator raises an objection to my headers without actually invalidating the document. Not in <title></title>, but in meta name="abstract" and...
14
by: Shiperton Henethe | last post by:
Hi Is there anyway to get a meta refresh to do so in an new browser window? e.g. This code forwards this user after 8 seconds... <meta http-equiv=refresh...
3
by: J1C | last post by:
How can I programatically add meta tags with javascript?
8
by: Taras_96 | last post by:
Hi everyone, We' ve come to the conclusion that we wish the user to be directed to an error page if javascript is disabled <enter comment about how a webpage shouldn't rely on javascript here :)...
21
by: Nikolaus Rath | last post by:
Hello, Can someone explain to me the difference between a type and a class? After reading http://www.cafepy.com/article/python_types_and_objects/ it seems to me that classes and types are...
5
by: Nick | last post by:
Hi there, I am adding a meta redirect tag to the page dynamically on 2 separate pages in asp.net. One of the pages it works fine, and 5 seconds after the page appears, the redirect occurs. On...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.