Hi Pete,
Thanks for your reply.I agree that we must use a "/" in case we are using ServletContext to get a requestDispatcher.
But i was not clear about what would happen if we try to use it like
So i tested it and got IllegalArgumentException.
But all that is written in api is
This method returns null if the ServletContext cannot return a RequestDispatcher.
There is no mention of IllegalArgumentException there.
Now i see many disparities in spec and containers.Thats why i asked this question here.
But anyway, i think the right answer is that it will throw IllegalArgumentException.