check your getServletContext() value using System.out
check your dispatch object value using System.out
then you will find which one is null.
and in your jsp
you should use request.getAttribute(). because you are setting attributes in servlet so can not get parameters. work it out.