Java/JSP/Output HTML
Output HTML from JSP code
<%@ page language="java" %>
<HTML>
<HEAD><TITLE>JSP Example</TITLE></HEAD>
<BODY>
<H1>Quadratic Equation: y = x^2</H1>
<TABLE BORDER="1">
<TH>x</TH><TH>y</TH>
<%
for (int i=0; i<10; i++)
out.print("<TR><TD WIDTH="100">" + i + "</TD><TD WIDTH="100">" + (i*i) + "</TD></TR>");
%>
</TABLE>
</BODY>
</HTML>