You can't. Accessing a mail account is completely different than accessing a web page (for starters, it's done using the POP or IMAP protocols, not HTTP). You need to use the JavaMail API to retrieve the mailbox contents, and then convert that to a web view. But there are a number of
Java web apps out there that do exactly this and are open source, so there's not much point in reinventing the wheel (unless the point is to learn web app development and JavaMail).
[ January 02, 2007: Message edited by: Ulf Dittmer ]