File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTML graphics in web apps

 
Adewale Adebusoye
Ranch Hand
Posts: 118
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bruce Jin
Ranch Hand
Posts: 672
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you post the code?
 
Paul Clapham
Sheriff
Pie
Posts: 20171
24
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 118
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20171
24
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic