It uses the JID and it wants the Presence

Smack API 3.0.4

I’m planning to a make web-based chatting program

It uses the JID and it wants the Presence.(Is not the List of the Roster)

It uses how?

I hope example.

For web-based clients you would use JwChat or Red5. There are threads for both on these forums, so a search should help you out.