效果
代码
<%@ 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 'MyJsp.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"> -->
<!-- ctrl+shift+/ -->
<!-- 引入js文件 -->
<script type="text/javascript"> for(var i=1;i<10;i++){ for(var j=1;j<=i;j++){ document.write(i+"*"+j+"="+i*j+"\t"); } document.write("<br>"); } </script>
</head>
<body>
This is my JSP page. <br>
</body>
</html>
当我看得越多,我就愈发认识到自己的无知,我开始对整个宇宙充满敬畏,并迫不及待地想要揭开它的秘密——而这需要用到整个世界的力量。
——伊扎克斯(王大全) 《异常生物见闻录》