3. Content View

Create a new "custom"-folder below ROOT and add the following JSP (Java Server Page) to it:

ROOT/custom/Meeting.jsp

A content-view consists mostly of basic HTML which renders the fields of the content-type into a nice layout.

<%@page import="custom.Meeting"%>
<%
 Meeting meeting =
   (Meeting) request.getAttribute("Node");
%>
<h1><%=meeting.getTitle()%></h1>
<table>
<tr>
 <td><b>Where:</b></td>
 <td><%=meeting.getLocation()%></td>
</tr>
<tr>
 <td><b>Start:</b></td>
 <td><%=String.format("%1$tF %1$tR", 
                  meeting.getStart())%></td>
</tr>
<tr>
 <td><b>Stop:</b></td>
 <td><%=String.format("%1$tF %1$tR",
                  meeting.getStop())%></td>
</tr>
</table>
<div><%=meeting.getTopic()%></div>

Last modified on 2011-07-22 by Maik Jablonski

Want to contribute?

1970-01-01

Do you want to contribute to Jease? Writing documentation is a good place to get started and will help to get people becoming more familiar with Jease. Any contribution is appreciated.