I have a jsp file which uses <object> tag to load an applet. Now because of the Microsoft IE patch for ActiveX, i had to change my code.I took the entire code for <object> tag into document.write in a function inside a js file. And i included that js file in my jsp file and called the function in place of the <object> tag. This has resulted in improper functioning of the code. I debugged the original code and the changed code and found that datainputstream.readInt()is giving problem when called from a js file. Can someone throw some light on the same?