Home Segments Top Top Previous Next

1062: Mainline

The servlets explained in this chapter follow the get protocol, rather than the post protocol. The server connection and data transmission take place in one step, rather than in two. Generally, the get protocol is good for smaller volume, faster communication, and the post protocol is good for larger volume, more secure communication. Servlets use doGet to handle the get protocol, and doPost to handle the post protocol.