Skip to content

Instantly share code, notes, and snippets.

@wytten
Created April 12, 2013 16:43
Show Gist options
  • Save wytten/5373366 to your computer and use it in GitHub Desktop.
Save wytten/5373366 to your computer and use it in GitHub Desktop.
Groovy Server Pages (gsp) example, including no-cache option
<% 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