一、项目文件结构
二、jsp源码与tag文件
具体的jsp文件与tag文件在以下的链接有,
需将例子中的index..jsp命名改为相应的index......jsp文件
例子2:https://blog.csdn.net/weixin_40119412/article/details/89279285
例子3:https://blog.csdn.net/weixin_40119412/article/details/89279712
例子4:https://blog.csdn.net/weixin_40119412/article/details/89290848
例子5:https://blog.csdn.net/weixin_40119412/article/details/89290952
例子6:https://blog.csdn.net/weixin_40119412/article/details/89291087
例子7:https://blog.csdn.net/weixin_40119412/article/details/89291248
例子8:https://blog.csdn.net/weixin_40119412/article/details/89292601
例子9:https://blog.csdn.net/weixin_40119412/article/details/89292652
三、主页面
index.jsp
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@ taglib tagdir="/WEB-INF/tags" prefix="inquire"%>
<%
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>手机产品信息管理系统</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>
<br>
<center>欢迎来到手机信息管理系统!</center>
<br><center><a href="indexInquire.jsp">【1】顺序查询</a></center>
<br><center><a href="indexRandom.jsp">【2】随机查询</a></center>
<br><center><a href="indexCondition.jsp">【3】条件查询</a></center>
<br><center><a href="indexOrder.jsp">【4】排序查询</a></center>
<br><center><a href="indexKey.jsp">【5】模糊查询</a></center>
<br><center><a href="indexUpdate.jsp">【6】更新操作</a></center>
<br><center><a href="indexAdd.jsp">【7】添加操作</a></center>
<br><center><a href="indexDelete.jsp">【8】删除操作</a></center>
<br/>
<br>
</body>
</html>
四、主页面运行效果显示示例