Welcome to the JavaRanch, Wadha!
In order to tell what's going on, we'd need to see the View Template. That seems to be where the primary error is, based on your message.
However.
Since your View Template seems to be a
JSP file, and JSP View Templates have been obsolete for probably 10 years now, I'm afraid you are trying to work with obsolete and unsupported technology.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.