File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes javascript code dump Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "javascript code dump" Watch "javascript code dump" New topic

javascript code dump

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi All,
We are developing an aplication on weblogic server6.0 and the frontend browser is Netscape Navigator 4.76
Some times we get the javascript "js" file code as screen dump. The javascript inside the "js" file is directly displayed to the user in form of HTML code.
this problem is very infrequent and occures erraticaly. Does nyone know how to fix this or what';s the cause of it?
We have set the mime type of the javascript files correctly as application-js file in the ear file.
ny pointers are welcome,
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

Are you using the Weblogic web-server or another one?
I've had the same problem and as far as we were able to track it down, it appeared to be a feature of the web server concatenating the output and not (necessarily) the browser or application server.
I agree. Here's the link:
subject: javascript code dump
It's not a secret anymore!