wood burning stoves 2.0
The moose likes JSP and the fly likes web page as attachment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "web page as attachment" Watch "web page as attachment" New topic

web page as attachment

mike mimmis
Ranch Hand

Joined: Feb 11, 2011
Posts: 57

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: 57

Thanks Mohan rvscas ,

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

Thanks & Regards,

I agree. Here's the link: http://aspose.com/file-tools
subject: web page as attachment
It's not a secret anymore!