The moose likes Groovy and the fly likes GSP validations without domain classes Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Other Languages » Groovy
Reply Bookmark "GSP validations without domain classes" Watch "GSP validations without domain classes" New topic
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
Sheriff

Joined: Jul 11, 2001
Posts: 15021

You can always just call domainInstance.validate().


My Blog | DZone Articles
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
 
developer file tools