Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!
  • 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
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

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]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic