This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes Shows source code while testing JSP with Netscape 6.10 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Shows source code while testing JSP with Netscape 6.10" Watch "Shows source code while testing JSP with Netscape 6.10" New topic
Author

Shows source code while testing JSP with Netscape 6.10

Meghna Kurup
Greenhorn

Joined: Mar 06, 2002
Posts: 5
Hi,
I have a problem here. I am in the process of testing a web application. As part of it I am testing the JSP pages in various versions of Netscape & IE.
While testing the page in Netscape 6.1, it was found that during submitting the form, instead of loading the page, the source code is randomly displayed on the browser. At times it works fine by displaying the page properly.
I had inserted the following code in JSP as suggested by someone.
<%@ page language="java" contentType="text/html" %>
Still it gives the same problem. Can anyone suggest what the problem is & what could be done by to avoid this.
Thanks in advance for your advice
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60774
    
  65

By "source code" do you mean HTML markup, or the Java in the JSP?
One of the first things I'd do to diagnose this is to use View Source to see what's being sent to the browser and in what way it's screwed up enough to confuse the browser.
hth,
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Meghna Kurup
Greenhorn

Joined: Mar 06, 2002
Posts: 5
Ofcourse, the source code meant the HTML codes that also consist of the source codes of Javascript files included in the JSP.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60774
    
  65

In that case then using View Source to see what is screwed up with the formatting of the response is definitely your first step.
From there you should be able to gather clues as to why the browser is tripping up.
hth,
bear
 
 
subject: Shows source code while testing JSP with Netscape 6.10
 
Similar Threads
How to read JavaScript function from a Jsp
application/pdf and netscape incompatability problem
alternative to session.invalidate() in netscape
AJAX readyState not working in Netscape navigator
alternative to session.invalidate() in netscape