1.添加录入页面,对页面进行操作
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>Title</title>
</head>
<body>
<h2>商品信息录入</h2>
<form action="addGoods" method="post">
商品名称:<input type="text" name="gname" value="" placeholder="商品名称"><br/>
商品名称:<input type="number" name="price" value="" placeholder="商品价格"><br/>
商品名称:<input type="text" name="mark" value="" placeholder="商品说明"><br/>
<input type="submit" value="提交">
</form>
</body>
</html>
2.跳转java页面,进行判断
![](https://img-blog.csdnimg.cn/img_convert/b2c920525e8a31ec38faa502f1c35e1e.png)
![](https://img-blog.csdnimg.cn/img_convert/4f32f4b236ca78762034cf897de384ab.png)
4. 展示
![](https://img-blog.csdnimg.cn/img_convert/611e1d029546874a382230ac11e64781.png)