jsp写九九乘法表
来源:互联网 发布:易语言漂亮ui界面源码 编辑:程序博客网 时间:2024/06/02 09:15
<%@ 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 'jiujiudemo1.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">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<%
int a=Integer.valueOf(request.getParameter("startNumber"));
int b=Integer.valueOf(request.getParameter("endNumber"));
for(int i=a;i<=b;i++){
for(int j=a;j<=i;j++){
out.print(j+"*"+i+"="+(j*i)+"\t");
out.print("  ");
}
out.print("<br/>");
}
%>
</body>
</html>
<%@ 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 'jiujiudemo.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">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<p align="center">请输入打印乘法口诀表</p>
<form action="./jiujiudemo1.jsp" method="post">
<table align="center">
<tr>
<td>
startNumber
</td>
<td>
<input type="text" name="startNumber"/>
</td>
</tr>
<tr>
<td>
endNumber
</td>
<td><input type="text" name="endNumber"/>
</td>
</tr>
<tr>
<td>
<input type="submit" value="提交"/>
</td>
<td>
<input type="reset"value="重置"/>
</td>
</tr>
</table>
</form>
</body>
</html>
- jsp写九九乘法表
- 使用jsp写简单的九九乘法表
- jsp的九九乘法表
- 利用jsp输出九九乘法表
- jsp、javascript打印九九乘法表
- JSP打印九九乘法表
- 用jsp编写九九乘法表
- jsp打印九九乘法表
- 用JSP输出九九乘法表
- jsp打印九九乘法表
- jsp--(九九乘法表)
- JSP生成九九乘法表
- 用指针写九九乘法表
- js写九九乘法表
- JS写九九乘法表
- delphi写的九九乘法表
- java写的九九乘法表
- Java写九九乘法表
- 学习OpenCV——车牌检测(定位)
- UML学习(一)
- Mshflexgrid控件填写数据时的添加方式的改变,加快数据读取速度.
- vijos 1049 送给圣诞夜的礼品
- android 永远锁屏解决方法
- jsp写九九乘法表
- 纹理分类(一)全局特征
- 好东西,记下来
- SDAUP 005
- Android上的Back键事件捕获
- C# 序列化 事例
- istringstream用法
- 共享内存的删除
- FMS 4.5 + Flex mobile 之 Hello World