<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
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>
This is my JSP page. <br>
</body>
</html>
test HelloWorld
最新推荐文章于 2020-12-19 13:16:19 发布
本文档展示了如何使用JSP技术创建一个简单的网页,并详细介绍了页面的基本配置,包括设置页面语言为Java、导入必要的包、定义页面编码、获取服务器上下文路径等。此外还包含了元标签的设置以优化网页SEO。
8026

被折叠的 条评论
为什么被折叠?



