-
Jan 15th, 2013, 02:15 PM
#1
How to handle invalid submit with annotations in spring 3
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.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules