Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- invoke a domain method in a gsp
- enter code here
- def affichage(s){
- def l=[]
- def regex = /<.w*.>/
- def matcher = s =~ regex
- matcher.each{match ->
- l.add(match)}
- l.each{
- for (i in l){
- println i
- }}}}
- // assuming theDomainObject/anotherObject are loaded, preferably via service calls
- render view: 'theView', model: [object: theDomainObject, another: anotherObject]
- ${object.yourMethod()}
- ${another.someprop}
- ${...}
Advertisement
Add Comment
Please, Sign In to add comment