| Author |
GSP validations without domain classes
|
Amit Sharma
Ranch Hand
Joined: Nov 22, 2005
Posts: 87
|
|
Hi
I have some textfields like email, name, mobile etc on a gsp page. I just want to validate them before saving in database, without using javascript at gsp page .
Is there any mechanism to do this in controller or somewhere else. And i am populating a bean by those parameters.
|
Amit Sharma SCJP 1.4, SCWCD 5, OCUP-100(UML)
|
 |
Xymor RM
Greenhorn
Joined: May 03, 2009
Posts: 2
|
|
Something like this?
http://www.grails.org/Command+objects+and+Form+Validation
|
 |
Gregg Bolinger
Ranch Hand
Joined: Jul 11, 2001
Posts: 15229
|
|
|
You can always just call domainInstance.validate().
|
 |
Amit Sharma
Ranch Hand
Joined: Nov 22, 2005
Posts: 87
|
|
|
Thanks Xymor Actually i was looking for something like this only
|
 |
 |
|
|
subject: GSP validations without domain classes
|
|
|