这是我的班级
public class EventDetail {
private String MemberId;
private String Category;
private Date Cdate;
public EventDetail(String MemberId, String Category, Date Cdate)
{
this.MemberId = MemberId;
this.Category = Category;
this.Cdate = Cdate;
}
public Date getDate()
{
return this.Cdate;
}
public void setDate(Date Cdate)
{
this.Cdate = Cdate;
}
当我用对象事件
调用方法时<% for (EventDetail event : events) { %>
<span class="r2"><%=event.getDate() %></span>
<span class="r4"><%=event.Category() %></span>
我收到此错误。如何解决此错误,我认为我的类EventDetail没有显示任何错误。
The method getDate() is undefined for the type EventDetail
%>
<div class="row">
<span class="r1"><%= count %></span>
<span class="r2"><%=event.getDate() %></span>
<span class="r2"><%=event.Place() %></span>
<span class="r3"><%=event.Title() %></span>
<span class="r4"><%=event.Category() %></span>