This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTML graphics in web apps

 
Adewale Adebusoye
Ranch Hand
Posts: 118
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you post the code?
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • 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
  • 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
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • 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