Guest User

Untitled

a guest
Jun 17th, 2012
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. invoke a domain method in a gsp
  2. enter code here
  3.  
  4.  
  5.  
  6. def affichage(s){
  7.  
  8. def l=[]
  9. def regex = /<.w*.>/
  10. def matcher = s =~ regex
  11. matcher.each{match ->
  12. l.add(match)}
  13. l.each{
  14. for (i in l){
  15. println i
  16. }}}}
  17.  
  18. // assuming theDomainObject/anotherObject are loaded, preferably via service calls
  19. render view: 'theView', model: [object: theDomainObject, another: anotherObject]
  20.  
  21. ${object.yourMethod()}
  22.  
  23. ${another.someprop}
  24.  
  25. ${...}
Advertisement
Add Comment
Please, Sign In to add comment