|
|
|
|||
|
Calling Servlets from BrowsersThe URL for a servlet has the following general form, where
servlet-name corresponds to the name you have
given your servlet:
http://machine-name:port/servlet/servlet-name
For example, the servlet that delivers the main page of Duke's
Bookstore has the property
http://localhost:8080/servlet/bookstore
Servlet URLs can contain queries, such as for HTTP GET requests. For
example, the servlet that delivers details about a particuar book takes the
stock-number of the book as a query. The servlet's name is
http://localhost:8080/servlet/bookdetails?bookId=203
| |||
|