aspose file tools*
The moose likes Servlets and the fly likes HTML graphics in web apps Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "HTML graphics in web apps" Watch "HTML graphics in web apps" New topic
Author

HTML graphics in web apps

Adewale Adebusoye
Ranch Hand

Joined: Sep 28, 2005
Posts: 118
I wrote a web app with javamail.
It works just fine, but i cant view or enable HTML graphics in the application, the end result is that i cant read mails with HTML graphics enabled.
Pls help, thanks


"Human beings can alter their lives by altering their state of mind" William James
Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 671
Could you post the code?


BJ - SCJP and SCWCD
We love Java programming. It is contagious, very cool, and lot of fun. - Peter Coad, Java Design

Crazy Bikes created by m-Power
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18987
    
    8

And post a sample of the HTML you put into the message? My first guess is that you're using a relative URL for your images, but that's just a guess.
Adewale Adebusoye
Ranch Hand

Joined: Sep 28, 2005
Posts: 118
Well its simply a code to read my email messages in my application. Im using javamail , so the code goes something like this, inside a jsp:

after importing javamail and the activation framework

<html>
<% for(int i=0;i<mesages.length;i++) {%>
<p> <%=message[i]% }> <p>
</html>
message is an array holding all the messages in my inbox
and im referencing them using the loop index.
It works very well if i'm reading just plain text emails, but when there are any HTML graphics in the message, i cant read them at all. What i see is a blank page.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18987
    
    8

That isn't the HTML you put into the message. What you posted there is code that generates the HTML. Without seeing the actual HTML generated by that code, it's impossible to say why it doesn't do what you want.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTML graphics in web apps