Skip to content
生如风生如风
主页
github icon
  • 手动回显

    SpringMVC—数据回显

    author icon生如风calendar icon2020年2月29日category icon
    • SpringMVC
    tag icon
    • SpringMVC
    timer icon小于 1 分钟

    此页内容
    • 手动回显

    # SpringMVC数据回显

    # 手动回显

    通过后端设置Model

    <%@ page contentType="text/html;charset=UTF-8" language="java" %>
    <html>
    <head>
        <title>Title</title>
    </head>
    <body>
    <form method="post" action="/addstudent">
        <table>
            <tr>
                <td>用户名</td>
                <td><input type="text" name="name" value="${name}"></td>
            </tr>
            <tr>
                <td>年龄</td>
                <td><input type="text" name="age" value="${age}"></td>
            </tr>
            <tr>
                <td>性别</td>
                <td><input type="text" name="name" value="${sex}"></td>
            </tr>
        </table>
    </form>
    </body>
    </html>
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24

    个人网站:https://liwangc.gitee.io/open in new window

    —————————————————————————

    作为初学者,很多知识都没有掌握,见谅,如有错误请指出,以期进步,感谢!。后续有新的学习,继续补充上来。

    默认页脚
    Copyright © 2026 生如风