Created
April 12, 2013 16:43
-
-
Save wytten/5373366 to your computer and use it in GitHub Desktop.
Groovy Server Pages (gsp) example, including no-cache option
This file contains 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.wyttenbach.dale.groovy.webapp.Example %> | |
<% | |
response.setHeader("Cache-Control","no-cache"); | |
response.setHeader("Pragma","no-cache"); | |
response.setDateHeader ("Expires", 0); | |
%> | |
<link rel="stylesheet" href="css/sample.css" type="text/css"> | |
Here is a bunch of text | |
<hr/> | |
<%= new Example().getString() %> | |
<hr/> | |
<% [1, 2, 3].each { println it } %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment