Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 17th, 2012  |  syntax: None  |  size: 0.42 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. ${...}