File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
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: 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,

Mike...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: web page as attachment
 
Similar Threads
pass data from JSP-JSP-SERVLET-DATABASE
Java Mailing
Mail Alerts on birthdays
regarding auto mail system
How to send a J2EE web application linked to mysql database to others?