Is it possible to use Validators in spring with MultiActionController.... if yes then How..
Thanks in advance
Rahul
Is it possible to use Validators in spring with MultiActionController.... if yes then How..
Thanks in advance
Rahul
Generally, if you want a validator you are doing data binding, which means you might as well use one of the subclasses of the data binding forms (e.g. BaseCommandController)
There is a way you can achieve multiple form validations in a single controller... but not using MultiActionController
take a look at this post... probably it might be helpful
http://forum.springframework.org/showthread.php?t=11086
-Nilantha
[/b]
Last edited by robyn; May 16th, 2006 at 03:24 AM.
Hi njay...
I tried the code you mentioned written by blolka..which is
public class MultiActionFormController extends BaseCommandController
{.....
....}
but its giving me delegate null pointer exeption... any idea how to set the delegate... I am using ParameterMethodNameResolver for resolving the mothod name
Originally Posted by njayalath
Do you know why this link is down (this one is one many posts)?
Last edited by robyn; May 14th, 2006 at 04:58 PM.
Yes, it is possible to do so. But you can't do it easily directly using the provided Controller implementations. I've written one to do exactly that and posted it a few months back. I'll put up a link once I find it.
look at the post under my name
http://forum.springframework.org/sho...t=11086&page=3
Thanks a lot.
Nice job !