JSP作业1
<%@ 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"> <!-- <link rel="stylesheet" type="text/css" href="styles.css"> --> </head> <body> <h1>这是我第一个JSP网页</h1> <p> 本节课学习了web的前世今生,对JSP有了简单的理解 </p> <br/> <h2>本次的作业为</h2> <ul> <li>安装Myeclipse,JDK</li> <li>配置环境连接Tomcat</li> <li>编写自己的第一个JSP页面</li> <li>发布到博客</li> </ul> <h2><font color="red"></font>加油,奥利给!!!</h2> </body> </html>