Sunday, November 2, 2008

lecture 17

Describe the request-response programming model of Servlets using an example.
the client sends a request to the request-response model in the form of a ServletRequest object. The response is send to the client in the form of a Servletresponse object.
For Example: if a client wanted the addtion of two numbers by entering in the browser, the server response with the answer.

2. Why do we need Java Servlets? Aren't static HTML stored in Web Servers good enough?
we need Java Servlets because web content these days keep changing all the time like weather forecasting, news, scores. therefore we need to dynamically update the web page to keep the response up to date.

No comments:

Post a Comment