01: /*
02: * Created on 02 mai. 2004 by the Message Center Team
03: */
04: package mc.formgenerator.servlets.util;
05:
06: import java.io.PrintWriter;
07:
08: /**
09: * Offers a method to display a message to the user via a servlet
10: */
11: public class MessageServlet {
12:
13: /**
14: * Default constructor
15: */
16: public MessageServlet() {
17: };
18:
19: /**
20: * Display a message to the user via a servlet
21: * @param out: The writer in which we must write
22: * @param message: The message to display
23: */
24: public void writeMessage(PrintWriter out, String message) {
25:
26: out
27: .println("<table bgcolor=\"#ddddff\" width=\"100%\" height=\"100%\">");
28: out.println(" <tr valign=\"middle\">");
29: out.println(" <td>");
30: out.println(" <center><b>" + message + "</b></center>");
31: out.println(" </tr>");
32: out.println(" </td>");
33: out.println("</table>");
34: }
35: }
|