Originally posted by Ulf Dittmer:
Welcome to JavaRanch.
A mailto URL causes a mail window to be opened on the client, which is not really what you want.
You should write the logic to send the mail as part of the server-side code. The relevant Java API for sending mail is called JavaMail; you'll need a mail server to use it (or use a library like Aspirin -on dev.java.net- that can send email without a server). An introduction to JavaMail can be found here.