For example, to associate the class mypackage.FooServlet with the name foo, add the following line to servlet.properties:
foo.code=mypackage.FooServlet
Continuing with the example above, to map the request URL http://<host>/foo.html to the servlet named foo, add the following line to rules.properties:
/foo.html=foo
For example, the servlet foo mentioned above could be accessed by either of the following URLs:
http://<host>/foo.html
http://<host>/servlet/foo
The HTML syntax for the embedded servlet tag is:
<SERVLET CODE="mypackage.MyServletClass" NAME_1="VALUE_1" . . . NAME_N="VALUE_N">where
NAME_1
through NAME_N
are the names of any
parameters you would like to send to the servlet, and VALUE_1
through VALUE_N
are the values for those parameters. These
parameters are passed to the servlet in a hashtable.