<%@ page import="org.mule.module.client.MuleClient,
                 org.mule.api.MuleMessage"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>

<html>
<head>
<title>Mule Hello World</title>
</head>
<body>
<%
    String name = request.getParameter("name");
    if(name!=null) {
        MuleClient client = new MuleClient();
        MuleMessage message = client.send("vm://greeter", name, null);
%>
<h3><%=message.getPayload()%></h3>
     <%}%>
Please enter your name:
<form method="POST" name="submitName" action="">
    <table>
        <tr><td>
            <input type="text" name="name"/></td><td><input type="submit" name="Go" value=" Go " />
        </td></tr>
    </table>
</form>
<p/>
<table border="1" bordercolor="#990000"  align="left">
<tr><td>For more information about Hello world example go <a target="_blank" href="http://www.muledocs.org/Hello+World+Example">here</a>.</td></tr>
</table>
</body>
</html>
