Difference between revisions of "Creating a servlet called CompletedBy"
From MyWiki
(Created page with "To create a servlet we need to configure a simple entry in the web.xml of the context.<br> For a servlet called CompletedBy the entry would be as follows :<br>") |
|||
Line 1: | Line 1: | ||
To create a servlet we need to configure a simple entry in the web.xml of the context.<br> | To create a servlet we need to configure a simple entry in the web.xml of the context.<br> | ||
For a servlet called CompletedBy the entry would be as follows :<br> | For a servlet called CompletedBy the entry would be as follows :<br> | ||
+ | <source lang="xml"> | ||
+ | |||
+ | <servlet> | ||
+ | <servlet-name>CompletedBy</servlet-name> | ||
+ | <servlet-class>myservlets.CompletedBy</servlet-class> | ||
+ | </servlet> | ||
+ | |||
+ | <servlet-mapping> | ||
+ | <servlet-name>CompletedBy</servlet-name> | ||
+ | <url-pattern>/CompletedBy</url-pattern> | ||
+ | <http-method>GET</http-method> | ||
+ | </servlet-mapping> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | </source> |
Latest revision as of 19:32, 3 November 2014
To create a servlet we need to configure a simple entry in the web.xml of the context.
For a servlet called CompletedBy the entry would be as follows :
<servlet> <servlet-name>CompletedBy</servlet-name> <servlet-class>myservlets.CompletedBy</servlet-class> </servlet> <servlet-mapping> <servlet-name>CompletedBy</servlet-name> <url-pattern>/CompletedBy</url-pattern> <http-method>GET</http-method> </servlet-mapping>