I think that your problem is very well explained here. Have a look at it. If, after reading it, you still are not sure how to apply the advice in your specific situation, include relevant parts of the controller code in your post.
I am trying Spring MVC for the first time(in fact I am quite new to Spring also). I tried this so many times for the past one day but still getting the same issue, even after looking at the suggested link and also other google search results. I am using the Spring mvc tutorial available at: