I have worked on a Spring app a few years ago, and was able to override the handleInvalidSubmit(req,res) method , in order to handle the invalid submit like going back and forth through the browser button.

My question is how can I achieve the same while using annotations in Spring application.

I am also facing another similar issue my new spring 3(annotation based) application. I am using DisplayTag library in order to display a list of objects in my JSP. When the results are more than a page's limit, it automatically creates the links to navigate on to the next and previous page etc. Those links used to work fine in my previous Spring application and all I had to do was to override

protected boolean isFormSubmission(req)

method and make it to return a true or false based on a condition such as if the request parameter map is empty. But again, I am not able to find any alternative to this method using annotations.

I am new to the annotations, and would greatly appreciate any help on these two issues.

Thanks.