老师为什么我这里会报错呢?
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <html> <head> <title>慕课网用户管理中心</title> <link rel="stylesheet" href="lib/bootstrap-3.3.7-dist/css/bootstrap.min.css"> <script src="lib/2.2.4/jquery-1.12.4.min.js"></script> <script src="lib/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <div class="row"> <div class="page-header"> <h1>慕课网后台管理系统 <small>用户数据管理中心</small> </h1> </div> </div> <div class="row"> <div class="jumbotron"> <h1>Mybatis基础入门课程!</h1> <p>通过一个项目来完成基础部分的学习</p> <p><a href="#" class="btn btn-primary btn-lg" role="button">查看更多,请上慕课网</a></p> </div> </div> <c:set var="user" value="${user}"> <div class="row"> <div class="col-md-8 col-md-offset-2"> <form class="form-horizontal"> <div class="form-group"> <label class="col-sm-2 control-label">用户账号</label> <div class="col-sm-10"> <p class="form-control-static">${user.username}</p> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label">登录密码</label> <div class="col-sm-10"> <p class="form-control-static">****</p> </div> </div> <div class="form-group"> <label for="nickname" class="col-sm-2 control-label">昵称</label> <div class="col-sm-10"> <input type="text" class="form-control" id="nickname" name="nickname" value="${user.nickname}" placeholder="Password"> </div> </div> <div class="form-group"> <label for="age" class="col-sm-2 control-label">年龄</label> <div class="col-sm-10"> <input type="text" class="form-control" id="age" name="age" value="${user.age}" placeholder="Password"> </div> </div> <div class="form-group"> <label for="gender" class="col-sm-2 control-label">性别</label> <div class="col-sm-10"> <input type="text" class="form-control" id="gender" name="gender" value="${user.gender}" placeholder="Password"> </div> </div> <div class="form-group"> <label for="phone" class="col-sm-2 control-label">联系方式</label> <div class="col-sm-10"> <input type="text" class="form-control" id="phone" name="phone" value="${user.phone}" placeholder="Password"> </div> </div> <div class="form-group"> <label for="email" class="col-sm-2 control-label">邮箱</label> <div class="col-sm-10"> <input type="text" class="form-control" id="email" name="email" value="${user.email}" placeholder="Password"> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label">账号创建时间</label> <div class="col-sm-10"> <p class="form-control-static">${user.createTime}</p> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label">最后修改时间</label> <div class="col-sm-10"> <p class="form-control-static">${user.updateTime}</p> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label">最后登录时间</label> <div class="col-sm-10"> <p class="form-control-static">${user.lastLogin}</p> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label">用户状态</label> <div class="col-sm-10"> <c:if test="${user.userStatus==0}"> <p class="form-control-static">正常</p> </c:if> <c:if test="${user.userStatus==1}"> <p class="form-control-static">锁定</p> </c:if> <c:if test="${user.userStatus==2}"> <p class="form-control-static">删除</p> </c:if> </div> </div> <div class="form-group"> <label for="remark" class="col-sm-2 control-label">备注</label> <div class="col-sm-10"> <input type="text" class="form-control" id="remark" value="${user.remark}" name="remark" placeholder="Password"> </div> </div> </form> </div> </div> </c:set> </div> </body> </html>
0
收起
正在回答
3回答
同学你好,<c:set>标签用于设置变量值和对象属性。用法就是这样定义的哦,同学这里记住即可。
如果我的回答解决了你的疑惑,请采纳。祝:学习愉快~
3. Java 数据库开发与实战应用
- 参与学习 人
- 提交作业 357 份
- 解答问题 8016 个
本阶段将带你学习MySQL数据库,JDBC接口,MyBatis框架等,带你掌握的数据的存放和管理。
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星