Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / April 2005

Tip: Looking for answers? Try searching our database.

Pasting JTable content into the body of an email message

Thread view: 
Marc Van Laer - 11 Apr 2005 17:11 GMT
Hi All,

Is there anybody here who succeeded in getting the content of
a JTable into the body of an email message?

I've succeeded in launching a new message window from my
java application adding an emailadress in the  "to:"- field.
I even managed to get a personalized "subject:"-line.

Now i'm trying to get the content of a JTable into the body of
that email message... Any ideas?

Thanks in advance,

Marc Van Laer
Arnaud Berger - 12 Apr 2005 07:27 GMT
Hi,

Look at JavaMail examples .
Pasting the content of the JTable would be :

Set the content-type of the body as text/html.
Write yout body as html and copy each line of your JTable as rows in a HTML
table .
The content should look like:
<html>
<body>
<table>
   <tr>
       <td>field1 of row 1</td>
       <td>field2 of row 1</td>
       <td>........</td>
   </tr>
   <tr>
       <td>field1 of row 2</td>
       <td>field2 of row 2</td>
       <td>........</td>
   </tr></table>
</body>
</html>

Regards,

Arnaud

> Hi All,
>
[quoted text clipped - 11 lines]
>
> Marc Van Laer
Marc Van Laer - 12 Apr 2005 21:36 GMT
Thanks Arnaud,

Or should i say "merci"...
I'll give it a try that way

Regards,

Marc Van Laer

> Hi,
>
[quoted text clipped - 41 lines]
>>
>> Marc Van Laer


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.