String getData() { return "foo"; } Example JSP in XML format This is the output of a simple JSP using XML format.
Use a jsp:scriptlet to loop from 1 to 10:
// Note we need to declare CDATA because we don't escape the less than symbol
]]>
Use a jsp:expression to write something: getData()
<p>This sentence is enclosed in a jsp:text element.</p>