In my previous post I had described about the setup and run Live Chat with openfire webchat . Here is the tip to add the Smileys to the webchat .
In my previous post we were adding Live Chat facility to our web application with the help of Openfire and WebChat. If you configure it properly then you must do the chat with it.

Now lets add the smileys (emotions) to our webchat application .
Open the WebChat folder present in your webserver .D:\Software\apache-tomcat-6.0.35\webapps\webchat or (open you server location ).In side that folder you find a chatmain.jsp file .Open it in any text editor you like. Write the bellow code after line no 431 .OR where ever you want to put your smiley buttons in your page.