By Jim Farley, William Crawford
With
Prakash Malani,
John Norman,
Justin Gehtland
Price: $44.95 USD
£31.95 GBP
Cover | Table of Contents | Colophon
http://www.cornco.com, and uses a web browser to interact with the company's web server. This allows the customer to view the company's products and make selections to purchase.
|
Component type
|
Module jar file suffix
|
Deployment descriptor filename and location
|
|---|---|---|
|
Web
|
.war("web archive")
|
WEB-INF/web.xml
|
|
Enterprise JavaBeans
|
.jar
|
META-INF/ejb-jar.xml
|
|
Applet
|
.jar
|
Not applicable
|
|
Application client |
<module> element in the application.xml file. The module reference indicates the location of the module jar file in the application archive. In the case of web modules, the module can also be given a web context root in the application descriptor. This context root is used as the base of URLs mapped to the components in the module.http://jakarta.apache.org.Binary installations are available for Windows and several Unix flavors.javax.servlet and javax.servlet.http. The javax is left over from an earlier stage of Java package naming conventions. As mentioned (and as indicated by the fact that this chapter appears in Part I of this book), servlets are a standard part of J2EE.
init(ServletConfig) method, which is allowed to complete before the servlet is asked to respond to any requests. After the init() method runs, the servlet container marks the servlet as available. For each incoming connection directed at a particular servlet, the container calls the ServletContext class. Servlets running in the same context can use this class to communicate with each other. We'll discuss this more later.Return to Java Enterprise in a Nutshell