JSP : 静态HTML + 动态JAVA
实现代码:
<html>
<head>
<title> new document </title>
</head>
<body>
<p align = "center"> <font size = 6 face = STKaiti color = FF33FF> Byte 的有效值范围为 <%= Byte.MIN_VALUE%> <%out.println("~");%> <%= Byte.MAX_VALUE%> </font></p>
<p align = "center"> <font size = 6 face = STKaiti color = FF33FF> Short 的有效值范围为 <%= Short.MIN_VALUE%> <%out.println("~");%> <%=Short.MAX_VALUE%> </font></p>
<p align = "center"> <font size = 6 face = STKaiti color = FF33FF> Integer 的有效值范围为 <%= Integer.MIN_VALUE%> <%out.println("~");%> <%= Integer.MAX_VALUE%> </font></p>
<p align = "center"> <font size = 6 face = STKaiti color = FF33FF> Float 的有效值范围为 <%= Float.MIN_VALUE%> <%out.println("~");%> <%= Float.MAX_VALUE%> </font></p>
<p align = "center"> <font size = 6 face = STKaiti color = FF33FF> Double 的有效值范围为 <%= Double.MIN_VALUE%> <%out.println("~");%> <%= Double.MAX_VALUE%> </font></p>
</body>
</html>