Close, but here's some more info.
1) Your form will be in a
JSP (or HTML if no dynamic elements are required -- but you usually at least need the context path for the form action, so a JSP is more customary). These days, the JSP should contain
no Java.
2) The form submits to a
servlet for processing. Whether the servlet grabs the submitted information and stuffs it into a bean or not is a matter of design. A bean may not be necessary for simple operations.
3) The servlet either uses JavaMail to send the message, or better yet, delegates the sending of the message to a re-usable class that handles it.
4) The servlet redirects to the next JSP to be displayed (or the page controller for that JSP, if appropriate) presumably with a "Congrats! Your message is on its way" message.
Things can get a lot more complicated (usage of Ajax for example), but that's the straight-forward, canonical
pattern that should get you going.
[ December 04, 2008: Message edited by: Bear Bibeault ]