powered by Jive Software

Tapestry5 and smack api

I am using Tapestry 5, Smack api 3.1.0.

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:

Chat chat = connection.getChatManager().createChat("kryptonomicon@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

showuponbrowser = message.getBody(); // this does nothing.

I am looking to get the replies to my html file so i can read them on the web instead of my ide. However when i try to set message.getBody() to showuponbrowser i see no result. Does anyone know how I get around this?