Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Mozilla,... failing to display integrated content.

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,

An approach to integrate JForum with another struts application has been achieved but for an unknown reason for me, while browsing the application using Mozilla, Firefox, Opera, html tags code text is displayed instead of html content. IE works fine.

All browsers display wrapped JForum fine when using Tomcat as standalone server in my dev Laptop, but when accessed from my servers(FreeBSD+Apache+Tomcat+mod_jk), only IE works as expected.

examples webapps:
www.discrete-it.net
soezine.discrete-it.net

Any lead will be appreciated.
Thanks in advance,
Orlando
[originally posted on jforum.net by orly]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You have to set the content type of the pages, either in each request (as in request.setContentType()), or setting the default content type in your httpd.conf (apache) or web.xml

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, I was reading some Filter examples on OnJava,...... it came to my mind and I just gave a try without hope and fortunatelly it worked.

I write
<%@ page contentType="text/html" %>
in all .jsp pages
I still don't know why do I have to set it again in the Filter.

Thanks a lot Rafael,
Orlando
[originally posted on jforum.net by orly]
 
reply
    Bookmark Topic Watch Topic
  • New Topic