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