Creating a Variable : Variable « JSP « Java Tutorial






<HTML>
  <HEAD>
    <TITLE>Creating a Variable</TITLE>
  </HEAD>

  <BODY>
    <H1>Creating a Variable</H1>
    <%
        int days;
        days = 365;
        out.println("Number of days = " + days);
     %>
  </BODY>
</HTML>








23.2.Variable
23.2.1.Creating a Variable
23.2.2.Define variable and reference it later
23.2.3.Reference variable
23.2.4.Page counter