This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
The moose likes Servlets and the fly likes Preview the compose message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Preview the compose message" Watch "Preview the compose message" New topic

Preview the compose message

nandhini sruthi

Joined: Jan 11, 2008
Posts: 17
I am doing sending mail using jsp with servlet,I am getting from,to,cc,ect... from jsp page and pass that values to servlet. my problem is how to preview the compose mail with jsp page before sending mail.please give the solution.

thanks in advance
Mark Newton
Ranch Hand

Joined: Jan 31, 2006
Posts: 129
I would get the from, to, CC, fields from the JSP, and pass them to another JSP page which can preview the message

That JSP would have OK and Back buttons - Back takes you to the previous page, to amend the message; OK passes the details to the servlet, to send the message, just as you are doing now.
Bert Bates

Joined: Oct 14, 2002
Posts: 8886
Let's slide this over to the Servlets forum..

Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Don't get me started about those stupid light bulbs.
subject: Preview the compose message