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