Hello varunge ,
i think you should check which servlet version you are using. that said you should have servlet-api 2.5 at least in you dev environment. if you are using maven it should be
Code:
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
Next step is to check whether you are indeed using that version in your web.xml
Code:
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/j2ee">
then you can use the dispatcher like this
Code:
<servlet-mapping>
<servlet-name>dispatcherServlet</servlet-name>
<url-pattern>/user/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>dispatcherServlet</servlet-name>
<url-pattern>/auth/*</url-pattern>
</servlet-mapping>
or even like this :
Code:
<servlet-mapping>
<servlet-name>dispatcherServlet</servlet-name>
<url-pattern>/user/*</url-pattern>
<url-pattern>/auth/*</url-pattern>
</servlet-mapping>
the second one works and that's what i use. not too sure about the first one but i guess it will be ok
I hope this helps