Groovy Server Pages

Groovy Server Pages (GSP) is a presentation language for web applications, similar to JSP. GSP allows static and dynamic content to be mixed in the same document. The result is a dynamically generated HTML, XML or other type of document in response to a Web client request.

Example

An example of GSP code:

 <html>
   <head></head>
   <body>
     <g:set var="string" value="Hello, world!" />
     <h1>${string}</h1>
   </body>
 </html>

See also


This article is issued from Wikipedia - version of the Tuesday, September 01, 2015. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.