I have problem giving the url-pattern information in web.xml file. I have a created a servet ServletExample and the url-pattern entry for this
servlet looks like this:
<servlet>
<servlet-name>ServletExample</servlet-name>
<servlet-class>ServletExample</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ServletExample</servlet-name>
<url-pattern>/ServletExample</url-pattern>
</servlet-mapping>
The servlet class is directly under the classes folder. When i try to run this servlet from
Tomcat with
http://localhost:8080/PostServlet URL, I get the following error:
The requested resource (/ServletExample) is not available.