1
2
3
4
5
6
7 package org.mule.example.bookstore.web;
8
9
10
11
12 public class HtmlTemplate
13 {
14 public static String wrapHtmlBody(String body)
15 {
16 String output = "";
17
18 output += "<html>";
19 output += "<head>";
20 output += "<meta http-equiv=\"Content-Language\" content=\"en-us\"/>";
21 output += "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1252\"/>";
22 output += "<title>Bookstore Administration Console</title>";
23 output += "</head>";
24
25 output += "<body link=\"#FFFFFF\" vlink=\"#FFFFFF\" alink=\"#FFFFFF\" bgcolor=\"#990000\" text=\"#FFFFFF\">";
26 output += body;
27 output += "</body>";
28
29 output += "<br/><a href=\"/bookstore-admin/\">Return to Home Page</a>";
30 output += "</html>";
31
32 return output;
33 }
34 }
35
36