|
 |
Documentation
Kattare is dedicated to making your hosting experience as painless as possible. That means making as much help and documentation available as possible.
|
|
| Category |
| JSP-Java Servlets |
|
Question
|
Last Modified: May 02, 2006
|
| How do I add a servlet mapping? |
| Answer |
The following is an example of a servlet mapping. This should be added to either
your web.xml or to your server.xml in the proper virtualhost.
<web-app>
<servlet>
<servlet-name>
example
</servlet-name>
<servlet-class>
ExampleServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>
examples
</servlet-name>
<url-pattern>
/example
</url-pattern>
</servlet-mapping>
</web-app>
|
[FAQ Main]
[Submit a Question]
[Back to Category "JSP-Java Servlets"]
|
|
 |