What is web application? Explain structure of web applications with suitable diagram.
Structure of Web Applications
A Web application exists as a structured hierarchy of directories. The root of this hierarchy serves as the document root for files that are part of the application. The first step in creating a web application is creating this structure. Each one of these directories should be created from the root directory of the servlet container. An example of a root directory, using Tomcat, would be /jakarta-tomcat-x.0/webapps. The figure given below shows the structure of web applications:
In the above structure, classes is the directory is where servlet and utility classes are located. The lib directory contains Java Archive files that the web application depends upon. For example, this is where we would place a JAR file that contained a JDBC driver. And Web.xml is the deployment descriptor.
Comments
Post a Comment