home | career | drupal | java | mac | mysql | perl | scala | uml | unix

Groovy example source code file (index.xhtml)

This example Groovy source code file (index.xhtml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Groovy tags/keywords

cdata, cdata, doctype, end, hello, name, name, public, transitional//en, transitional//en, w3c//dtd, world, world, xhtml

The Groovy index.xhtml source code

<?xml version="1.0"?>
<!-- DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" -->

<html xmlns:gsp="http://groovy.codehaus.org/2005/gsp">

  <head>
    <link rel="stylesheet" href="../codehaus-style.css" type="text/css" />
  </head>

  <body>

  Name = ${request.getParameter("name")} <br/>
  Name = <gsp:expression>params.get("name")

  <hr color="#12334" noshade="noshade" />

  BEGIN

    <br/>

  <gsp:scriptlet>
   <![CDATA[
    3.times {
   ]]>
  </gsp:scriptlet>
* Hello World! *
  <gsp:scriptlet>
   <![CDATA[  } // 3.times ]]>
  </gsp:scriptlet>  

    <br/>

    END

  </body>

</html>

Other Groovy examples (source code examples)

Here is a short list of links related to this Groovy index.xhtml source code file:

new blog posts

 

Copyright 1998-2013 Alvin Alexander, alvinalexander.com
All Rights Reserved.