Tags: embedding ali tag output scope current time Code execution HTML nbsp
1 Direct output HTML tags embedded in HTML
<body>
<h1> Show current time and date </h1>
<%
Date date = new Date ();
Out.print ("<h2 align=\" Center\ ">" + date.tostring () + "</h2>");
%>
</body>
The position of the out in the HTML is the position of the label.
2 Using variables to influence
Scope of the 2.1 JSP variable
2.2
How the Java code embedded in the JSP performs the effect on HTML