001    
002    package railo.cfx.example;
003    
004    import com.allaire.cfx.CustomTag;
005    import com.allaire.cfx.Request;
006    import com.allaire.cfx.Response;
007    
008    /**
009     * CFX Hello World Example
010     */
011    public final class HelloWorld implements CustomTag{
012    
013        /**
014         * @see com.allaire.cfx.CustomTag#processRequest(com.allaire.cfx.Request, com.allaire.cfx.Response)
015         */
016        public void processRequest(Request request, Response response) throws Exception {
017            
018            if(request.attributeExists("name"))
019                response.write("hello "+request.getAttribute("name"));
020            else
021                response.write("hello");
022        }
023    }