• 单表的增删改查-add.jsp


    <%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>添加页面</title>
    <link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/index2.css">
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.8.3.min.js"></script>
    </head>
    <body>
    <form:form action="/add" method="post" modelAttribute="shop">
    <table>
    <tr>
    <td>商品名称:</td>
    <td>
    <form:input path="sname"/>
    </td>
    </tr>
    <tr>
    <td>商品分类:</td>
    <td>
    <form:input path="sfenlei"/>
    </td>
    </tr>
    <tr>
    <td>积分数量:</td>
    <td>
    <form:input path="sjifen"/>
    </td>
    </tr>
    <tr>
    <td>可兑换数量:</td>
    <td>
    <form:input path="sduihuan"/>
    </td>
    </tr>
    <tr>
    <td>已兑换数量:</td>
    <td>
    <form:input path="syiduihuan"/>
    </td>
    </tr>
    <tr>
    <td>已</td>
    <td>
    <form:button>保存</form:button>
    </td>
    </tr>
    </table>

    </form:form>
    </body>
    </html>

  • 相关阅读:
    JSON.parse()与JSON.stringify()的区别
    响应式布局
    document.selection
    jQuery $.proxy() 方法
    <转> 键值表
    jquery-jqzoom 插件 用例
    jquery 笔记
    前端表单验证常用的15个JS正则表达式<转>
    css 问题解决
    <转>break与continue
  • 原文地址:https://www.cnblogs.com/liuzhaolong/p/12880582.html
Copyright © 2020-2023  润新知