title: Smack api and Java
body: <p>I am using Tapestry 5, Smack api 3.1.0.</p>
  
  <p>I have established a connection and am able to communicate with a user through the xmpp server but the replies i get are sent to the standard output as they come in:</p>
  
  <pre><code>Chat chat = connection.getChatManager().createChat("blah@jabber.org", new MessageListener() {
      public void processMessage(Chat chat, Message message) {
          // Print out any messages we get back to standard out.
          System.out.println("Received message: " + message.getBody());                   // this works
  
          showonbrowser = message.getBody();                                                   
          System.out.println(showonbrowser) // this prints nothing
      }
  };
  </code></pre>
  
  <p>I am looking to get the replies to my html file so i can read them on the web instead of the console.  However, when i try to set message.getBody() to showonbrowser (a property on the page) i see no result.  Does anyone know how I get around this?</p>
  
  <p>Regards,</p>
  
  <p>Kace</p>