<%@ 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 'secondTitle.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>
这里每一句的作用都说一下好吗?谢谢您了。。我跪下了。。。最后的分也献上了
JSP语句自动生成的语句 不懂啊。高手来帮帮我
答案:2 悬赏:30
解决时间 2021-12-30 15:37
- 提问者网友:神仙爷爷
- 2021-12-30 04:36
最佳答案
- 二级知识专家网友:狠傷凤凰
- 2021-12-30 05:45
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
头文件,必须得写。编码格式啥的都在这定义
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
相对路径,你要不用可以删除
<base href="<%=basePath%>">
基本连接,删不删都一样
<title>My JSP 'secondTitle.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">
css,没有,所以你删除也行,引入自己的也行
<body>
This is my JSP page. <br>
</body>
你要想让页面显示东西,这个地方必须留着
头文件,必须得写。编码格式啥的都在这定义
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
相对路径,你要不用可以删除
<base href="<%=basePath%>">
基本连接,删不删都一样
<title>My JSP 'secondTitle.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">
css,没有,所以你删除也行,引入自己的也行
<body>
This is my JSP page. <br>
</body>
你要想让页面显示东西,这个地方必须留着
全部回答
- 1楼网友:陪伴是最长情的告白
- 2021-12-30 06:06
href='tourist/1.jsp?goodsid=3125' 地址是'tourist/1.jsp传了一个名字叫goodsid的参数,这个参数的值是3125 后台可以根据这个参数来做事情,比如通过这个goodsid=3125条件从数据库里查出这个商品 target=_blank意思是在新窗口打开
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯