I have several jsp's files that retrieves two external files that contains javascript code, like this:
<SCRIPT SRC="/js/Script1.js" LANGUAGE="JavaScript"></SCRIPT>
<SCRIPT SRC="/js/Script2.js" LANGUAGE="JavaScript"></SCRIPT>
On "Script2.js" i call some functions in "Script1.js".
My problem begins when i try to run some of the jsp's files, by some reason that i can't understain, the generation of the file breaks halfway to the end. I try to see the source code in the browser and appears like this:
<HTML>
<HEAD>
<SCRIPT SRC="/js/Script1.js" LANGUAGE="JavaScript"></SCRIPT>
<SCRIPT SRC="/js/Script2.js" LANGUAGE="JavaScript"></SCRIPT>
</HEAD>
<BODY>
<table>
...
</table>
<INPUT TYPE="hidden" NAME="CARGO" VALUE="0">
<INPUT type="hidden" name="PROCESS" value="STPS">
<INPUT type="hidden" name="ACTION" value="EMPTY">
<INPUT TYPE="hidden" NAME="com.ibm.websphere.current_uri" VALUE="/jsp/true.jsp">
<INPUT TYPE="hidden" NAME="com.ibm.websphere.olt.forward.request" VALUE="Servlet"
note that the last line didn't reach the end.
The problem only happens in some jsp's and the precise location of the break depends of the jsp, but it's always more or less in the same area.
But when i put the two js files in one, this problem disappears. I'm trying to understain why ????
thanks...
<SCRIPT SRC="/js/Script1.js" LANGUAGE="JavaScript"></SCRIPT>
<SCRIPT SRC="/js/Script2.js" LANGUAGE="JavaScript"></SCRIPT>
On "Script2.js" i call some functions in "Script1.js".
My problem begins when i try to run some of the jsp's files, by some reason that i can't understain, the generation of the file breaks halfway to the end. I try to see the source code in the browser and appears like this:
<HTML>
<HEAD>
<SCRIPT SRC="/js/Script1.js" LANGUAGE="JavaScript"></SCRIPT>
<SCRIPT SRC="/js/Script2.js" LANGUAGE="JavaScript"></SCRIPT>
</HEAD>
<BODY>
<table>
...
</table>
<INPUT TYPE="hidden" NAME="CARGO" VALUE="0">
<INPUT type="hidden" name="PROCESS" value="STPS">
<INPUT type="hidden" name="ACTION" value="EMPTY">
<INPUT TYPE="hidden" NAME="com.ibm.websphere.current_uri" VALUE="/jsp/true.jsp">
<INPUT TYPE="hidden" NAME="com.ibm.websphere.olt.forward.request" VALUE="Servlet"
note that the last line didn't reach the end.
The problem only happens in some jsp's and the precise location of the break depends of the jsp, but it's always more or less in the same area.
But when i put the two js files in one, this problem disappears. I'm trying to understain why ????
thanks...