<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'index.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<body>
hello<br>
</body>
</html>
![]()
<%--
Created by IntelliJ IDEA.
User: 97442
Date: 2022/3/21
Time: 16:13
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>$Title$</title>
</head>
<body>
<h2>英文字母表:</h2>
<%for(char c = 'A'; c <= 'Z'; c++){
out.print(c + "(" + (char)(c+32) + ") ");
} %>
</body>
</html>
![]()
<%--
Created by IntelliJ IDEA.
User: 97442
Date: 2022/3/21
Time: 16:13
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>$Title$</title>
</head>
<body>
<h2>99乘法表:</h2>
<%for(int a = 1; a <= 9; a++){
for(int b = 1; b <= a; b++){
out.print(b + "x" + a + "=" + (a*b) + " ");
}
out.print("</br>");
} %>
</body>
</html>
![]()