Java Reference
In-Depth Information
is in transit” . The service() method then writes the Order object to the
ObjectOutputStream to be read by the OrderStatusApplet . Listing 6.8 contains the source
for the OrderStatusServlet .
6
F IGURE 6.1
The OrderStatusApplet .
L ISTING 6.8
OrderStatusServlet.java
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
public class OrderStatusServlet extends HttpServlet {
//Initialize global variables
public void init(ServletConfig config)
throws ServletException {
super.init(config);
}
private void getOrderStatus(Order order) {
// This could do just about anything;
 
Search WWH ::




Custom Search