Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send email with Form info

Status
Not open for further replies.

evergrean100

Technical User
Dec 1, 2006
115
US
I have a Form with 10 fields on it and I need to send an email with all 10 field values. The email output will look like this:
Code:
First Name: Joe
Last Name: Smith
City: Dallas
State: Texas
....

The form will pass the values to a Servlet which will call a JavaBean class that will get the values. I will also have to use the getMetaData method to get the field names?
The email (JavaMail located in an email helper class) part will be called in the Servelt to send the JavaBean values.

Is this the right direction?


 
Thanks,

I ended up using an Array in the action page and listing the info from it. I was going to use Enumeration but it didnt guarantee order like I needed.
 
Also, by the way that link you gave me is an excellent place to start because I used it (with some modifications) for my form validations because I cant get Struts at this time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top