How can I use Smack API to build a web application?

Please tell me the main functions and classes to connect sever and start instant chat. Thanks

smack won’t do. Have a look at JSJaC and JwChat, at

http://zeank.in-berlin.de/