MessageServlet.java :  » Workflow-Engines » bonita-v3.1 » mc » formgenerator » servlets » util » Java Open Source

Java Open Source » Workflow Engines » bonita v3.1 
bonita v3.1 » mc » formgenerator » servlets » util » MessageServlet.java
/*
 * Created on 02 mai. 2004 by the Message Center Team
 */
package mc.formgenerator.servlets.util;

import java.io.PrintWriter;

/**
 * Offers a method to display a message to the user via a servlet
 */
public class MessageServlet {

  /**
   * Default constructor
   */
  public MessageServlet(){};
  
  
  
  
  /**
   * Display a message to the user via a servlet
   * @param out: The writer in which we must write
   * @param message: The message to display
   */
  public void writeMessage(PrintWriter out, String message){
    
    out.println("<table bgcolor=\"#ddddff\" width=\"100%\" height=\"100%\">");
    out.println("  <tr valign=\"middle\">");
    out.println("    <td>");
    out.println("      <center><b>"+message+"</b></center>");
    out.println("    </tr>");
    out.println("  </td>");
    out.println("</table>");
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.