While there is no one way to write rendering code for an application, in this example we'll write a simple JSP renderer for our basic cartridge.
To write a basic "Hello, World" renderer:
Create a new JSP page and type or copy the following:
<%@page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8"%> <%@include file="/WEB-INF/views/include.jsp"%> <div style="border-style: dotted; border-width: 1px; border-color: #999999; padding: 10px 10px"> <div style="font-size: 150%; color: ${component.messageColor}">${component.message} </div> </div>
Save the renderer to
discover-electronics-authoring/WEB-INF/views/desktop/Hello/Hello.jsp
.Refresh the Discover Electronics authoring application at
http://<workbench-host>:8006/discover-authoring/
to see the result.