Groovy Server Pages
Encyclopedia
Groovy Server Pages is a presentation language for web applications, similar to JSP
JavaServer Pages
JavaServer Pages is a Java technology that helps software developers serve dynamically generated web pages based on HTML, XML, or other document types...

. GSP allows static and dynamic content to be mixed in the same document. The result is a dynamically generated HTML
HTML
HyperText Markup Language is the predominant markup language for web pages. HTML elements are the basic building-blocks of webpages....

, XML
XML
Extensible Markup Language is a set of rules for encoding documents in machine-readable form. It is defined in the XML 1.0 Specification produced by the W3C, and several other related specifications, all gratis open standards....

 or other type of document in response to a Web client request.

Example

An example of GSP code:





<%def string = 'hello world'%>

${string}




The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK