IntelliJ open source
[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Reply Bookmark it! Watch this topic JavaRanch » Forums » Other Languages » Groovy
 
RSS feed
 
New topic
Author

GSP validations without domain classes

Amit Sharma
Ranch Hand

Joined: Nov 22, 2005
Messages: 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
Messages: 2

Something like this?

http://www.grails.org/Command+objects+and+Form+Validation

Gregg Bolinger
Sheriff

Joined: Jul 11, 2001
Messages: 13681

You can always just call domainInstance.validate().

"Fookin Prawns"
Amit Sharma
Ranch Hand

Joined: Nov 22, 2005
Messages: 87

Thanks Xymor Actually i was looking for something like this only

Amit Sharma SCJP 1.4, SCWCD 5, OCUP-100(UML)
 
jQuery in Action
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Other Languages » Groovy
 
RSS feed
 
New topic
replay challenge