- Servlet is a Java component living in a web server capable of communication through request-response model and allowing concurrent access.
- A JSP file consists of markup with embedded Java code. At translation time, JSP is translated to Java servlet code and compiled. At request time, the compiled class files are executed.
- Java web applications have a well defined structure with a WEB-INF directory containing classes, deployment descriptor, and other files. They are typically packaged in .war files.
- The deployment descriptor web.xml is the central configuration file read when the web server starts. It contains configuration parameters and defines custom URLs in web applications by mapping servlet names to URL patterns.