Optimize with a SATA RAID Storage Solution
Range of capacities as low as $1250 per TB. Ideal if you currently rely on servers/disks/JBODs
Page 2 of 8
A servlet, at a bare minimum, simply has to implement a single method:
public void doGet( HttpServletRequest request, HttpServletResponse response );
Technically, the servlet must also implement a
doPost method if it wishes to handle client requests that use the HTTP
POST command instead of
GET. For the purpose of keeping this article simple, however, you can assume that all client requests are of type
doGet method takes two objects: a request and a response. The request object encapsulates any data that the client sent to the
server, along with some meta-information about the client itself. You use the response object to send data back to the client.
That's a very abstract explanation, but this article isn't an introduction to servlets, so I won't go into greater detail.
For a good primer to servlets, I recommend Java Servlet Programming (O'Reilly & Associates) by Jason Hunter, William Crawford, and Paula Ferguson.
When you call the servlet from the ASP, you're just going to call the
doGet method and pass in the appropriate request and response objects. From that point on, the servlet has full control. The ASP
script acts as a bootstrap to the servlet. But before you can pass in the request and response objects, you must wrap them with the respective adapter
classes (which I will examine in detail later on).