aspose file tools*
The moose likes Struts and the fly likes Creation of Image from HTML string in Action Class for sending email as Image. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Creation of Image from HTML string in Action Class for sending email as Image." Watch "Creation of Image from HTML string in Action Class for sending email as Image." New topic
Author

Creation of Image from HTML string in Action Class for sending email as Image.

Harish Maridi
Ranch Hand

Joined: May 20, 2008
Posts: 60
Hi,

Task: Send an Image as email, Image needs to derived from the HTML String in the Action Class.

Ex: HTML String is



If anybody has any tool that is best fit to do this kind of functionality please let me know or if you have any other solutions.

Thanks,
Mark
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8870
    
    8

Given that the HTML in your first example is poorly-formed, I'd suspect that's the cause of your problems.
If the HTML is well-formed, have a look at this example from our FAQ.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Creation of Image from HTML string in Action Class for sending email as Image.