This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JSP and the fly likes web page as attachment Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "web page as attachment" Watch "web page as attachment" New topic
Author

web page as attachment

mike mimmis
Ranch Hand

Joined: Feb 11, 2011
Posts: 56

Hi ranchers,

I am developing an web application using servlets and jsp. database is mysql.

Data coming to webpages from mysql database which is displaying in jsp pages. I have configured java mail system to send mail to clients who are registered my application.

Now I need to send the webpage to client as it is through email. i.e in one page user views his profile and want to share his profile with his friend(that current watching webpage) . How it is achieved. any help...

Thanks in advance....
Mohan rvscas
Ranch Hand

Joined: Jul 03, 2010
Posts: 39
Hi Mike,

You can set the content type in jsp page for download the jsp page as html.

After downloading the page use mail attachment and do your process.

Use the following code to download the jsp page.
mike mimmis
Ranch Hand

Joined: Feb 11, 2011
Posts: 56

Thanks Mohan rvscas ,

It helped me a lot. Thanks for reply.. Now its working

Thanks & Regards,

Mike...
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: web page as attachment
 
Similar Threads
Mail Alerts on birthdays
regarding auto mail system
Java Mailing
pass data from JSP-JSP-SERVLET-DATABASE
How to send a J2EE web application linked to mysql database to others?