Output HTML from JSP code : Output HTML : JSP : Java examples (example source code) Organized by topic

Java
C++
PHP
Java Home »  JSP   » [  Output HTML  ]  Screenshots 
 



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>


           
       
Related examples in the same category








Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.