/* * Copyright 2001-2006 Geert Bevin * Distributed under the terms of either: * - the common development and distribution license (CDDL), v1.0; or * - the GNU Lesser General Public License, v2.1 or later * $Id: HelloWorld.java 3364 2006-07-10 10:33:29Z gbevin $ */ import com.uwyn.rife.engine.Element; import com.uwyn.rife.template.Template; /** * This element simply outputs the Hello world. message. * * @author Geert Bevin (gbevin[remove] at uwyn dot com) * @version $Revision: 3364 $ */ public class HelloWorld extends Element { /** * The element's entry point. */ public void processElement() { Template template = getHtmlTemplate("helloworld"); template.setValue("hello", "Hello world."); print(template); } }