I am New to JavaMail API, and I have written a Mail reader that can access my email account and retrieve emails from it. It compiled but I do not know how to view the output in tomcat6.

Can anyone help me with this. I just wanted to upload the file to tomcat and view the result but I did not have any web.xml. Is that necessary and if it is where can i get a usefull web.xml that I can use.

I am working on windows environment.