Java Web第一章 index.jsp

来源:互联网 发布:nginx 域名www跳转 编辑:程序博客网 时间:2024/06/07 16:42
<%@ 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">
-->
 <style type="text/css">
<td class="btnav" onmouseover="style.backgroundColor='#84DFC1';"
onmouseout="style.backgroundColor='#84C1DF'"> 
<div align="center"><a href="http://www.mylink.com/" target="_blank">MyLink</a></div>
</td> 




  
  </style>
  </head>
  
  <body>
   <a name="top">这是顶部</a><br/><br/><br/><br/><br/><br/><br/><br/><br/>
   <br/><br/><br/><br/><br/><br/><br/><br/><br/>
<Table>
<Tr>
<td class="btnav" onmouseover="style.backgroundColor='#84DFC1';"
onmouseout="style.backgroundColor='#84C1DF'">My Table</Td><td>My Table</Td> <td>My Table</Td>
</Tr>
<Tr>
<td class="btnav" onmouseover="style.backgroundColor='#84DFC1';"
onmouseout="style.backgroundColor='#84C1DF'">My Table</Td><td>My Table</Td> <td>My Table</Td>
</Tr>
<Tr>
<td class="btnav" onmouseover="style.backgroundColor='#84DFC1';"
onmouseout="style.backgroundColor='#84C1DF'">My Table</Td><td>My Table</Td> <td>My Table</Td>
</Tr>
</Table> 
<a href="#top">跳到顶部</a>
<br/><br/><br/><br/><br/><br/><br/><br/><br/>
  </body>
</html>
0 0
原创粉丝点击