view plaincopy to clipboardprint?
Basically i want to hit this servlet whenever the last token is /FCExporter.
Why it seems inappropriate?
You would have configured <servlet> tag with <servlet-name> & <servlet-class>. And everytime whenever the request is from "/FCExporter", your servlet class (configured in <servlet-class>) will be called,provided you have correctly configured it.
Also remember, does not refers to servlet class
you can see it practically when you execute your web application,just look the log files or tomcat.exe console application.... you can know each and every activity done on your servlet program by the container even you can see the exceptions also.. when encountered...
1)exact match.. example:
here the url pattern starts with "/" can have any charactters except *,where * include , .extension etc
<url-pattern>*.extension</url-pattern>//*-->can be abc,123or even abc/123/a/b
(so on) ...
<url-pattern>/abc.c</url-pattern>//here .c is the extension and must be at last
must begin with "/" and end with "*",multiple words or characters must be seperated by "/'
if you write any url-pattern other than the above (not as in examples) url patterns that is exact match,extension match,directory match) then container doesn't recognize the url pattern mentioned in web.xml more over you get exception...