1. 搭建环境,建个工程,输出hello
2 输出字母表
3.输出99乘法表
<%@ 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>
乘法表<br></br></head>
<body>
<%for(int j=1;j<9;j++){
for(int i=1;i<=j;i++){
int n=i*j;
out.print(i+"x"+j+"="+n+"");
}
out.print("<br>" );
}%>
<br>
</body>
</html>