我是叶霖
2019-06-30 13:51
org.apache.jasper.JasperException: javax.el.PropertyNotFoundException: 类型[java.lang.String]上找不到属性[command] org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:638) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:514) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329) javax.servlet.http.HttpServlet.service(HttpServlet.java:741) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) com.servlet.ListServlet.doGet(ListServlet.java:51) javax.servlet.http.HttpServlet.service(HttpServlet.java:634) javax.servlet.http.HttpServlet.service(HttpServlet.java:741) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
package bean;
/**
* 与消息表对应的消息队列
*
*/
public class Message {
private String id; // 主键
private String command; // 指令
private String description; // 描述
private String content; // 操作
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getCommand() {
return command;
}
public void setCommand(String command) {
this.command = command;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
@Override
public String toString() {
return "Message [id=" + id + ", command=" + command + ", description=" + description + ", content=" + content
+ "]";
}
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page import="bean.Message"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE" />
<title>内容列表页面</title>
<link href="<%=basePath%>/resources/css/all.css" rel="stylesheet"
type="text/css" />
</head>
<body style="background: #e1e9eb;">
<form action="" id="mainForm" method="post">
<div class="right">
<div class="current">
当前位置:<a href="javascript:void(0)" style="color: #6E6E6E;">内容管理</a>
> 内容列表
</div>
<div class="rightCont">
<p class="g_title fix">
内容列表 <a class="btn03" href="#">新 增</a> <a
class="btn03" href="#">删 除</a>
</p>
<table class="tab1">
<tbody>
<tr>
<td width="90" align="right">演示字段1:</td>
<td><input type="text" class="allInput" value="" /></td>
<td width="90" align="right">演示字段2:</td>
<td><input type="text" class="allInput" value="" /></td>
<td width="85" align="right"><input type="submit"
class="tabSub" value="查 询" /></td>
</tr>
</tbody>
</table>
<div class="zixun fix">
<table class="tab2" width="100%">
<tbody>
<tr>
<th><input type="checkbox" id="all" onclick="#" /></th>
<th>序号</th>
<th>指令名称</th>
<th>描述</th>
<th>操作</th>
</tr>
<c:forEach items="${req.messageList} " var="message"
varStatus="status">
<tr
<c:if test="${status.index % 2!= 0 }"> style='background-color: #ECF6EE;' </c:if>>
<td><input type="checkbox" /></td>
<td>${status.index + 1}</td>
<td>${message.command }</td>
<td>${message.description }</td>
<td><a href="#">修改</a> <a href="#">删除</a>
</td>
</tr>
</c:forEach>
</tbody>
</table>
<div class='page fix'>
共 <b>4</b> 条 <a href='###' class='first'>首页</a> <a href='###'
class='pre'>上一页</a> 当前第<span>1/1</span>页 <a href='###'
class='next'>下一页</a> <a href='###' class='last'>末页</a> 跳至 <input
type='text' value='1' class='allInput w28' /> 页 <a
href='###' class='go'>GO</a>
</div>
</div>
</div>
</div>
</form>
</body>
</html>
通过自动回复机器人学Mybatis---基础版
107412 学习 · 786 问题
相似问题
回答 1