This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.springframework.web.context.support.WebApplicationContextUtils | |
class BootStrap { | |
def init = { servletContext -> | |
// Get spring | |
def springContext = WebApplicationContextUtils.getWebApplicationContext( servletContext ) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// If user has 'firstname', and the form has a 'firstname' input, it'll be assigned | |
userInstance.properties = params |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package grailsmodelspart1 | |
class CoinToss { | |
static constraints = { | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Howdy!</title> | |
</head> | |
<body> | |
<h1>Howdy!</h1> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title><g:layoutTitle default="Ima Default Title" /></title> | |
<g:layoutHead /> | |
<link rel="stylesheet" type="text/css" href="<g:resource dir="css" file="godawful.css" />"></link> | |
</head> | |
<body> | |
<g:layoutBody /> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
background: #a0a; color: #FF0; font-family: Comic Sans, Comic Sans MS, cursive | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta name="layout" content="godawful" /> | |
<title>Howdy!</title> | |
</head> | |
<body> | |
<h1>Howdy!</h1> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title><g:layoutTitle default="Ima Default Title" /></title> | |
<g:layoutHead /> | |
</head> | |
<body style="background: #a0a; color: #FF0; font-family: Comic Sans, Comic Sans MS, cursive"> | |
<g:layoutBody /> | |
© <g:formatDate format="yyyy" date="${ new Date() }" />, whoever. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title><g:layoutTitle default="Ima Default Title" /></title> | |
<g:layoutHead /> | |
</head> | |
<body> | |
<g:layoutBody /> | |
© <g:formatDate format="yyyy" date="${ new Date() }" />, whoever. |