dear aruna,
1.
<servlet-mapping>
<servlet-name>reportServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
U r declaring a default servlet here. With every requests Container try to match Url
pattern, if it found no match then it will call this servlet.
2.
<servlet-mapping>
<servlet-name>BlueServlet</servlet-name>
<url-pattern>/blue/</url-pattern>
</servlet-mapping>
It should call BlueServlet when path info is "/" and servlet path is "/Blue".
here second slash will restrict u to use path info not more then slash.
Whereas in case of
/blue/*
,
It is not restricting u on length/size of the path info.
Hope this helps,
Best Regards, Dharmin
SCJP2 (93%),SCWCD(88%)<br />-------------------------------<br />Never under estimate yr self, just represent yr profile in proper manner.