I don't know if it will help with this case, but I see that you have
ONLOAD=show5() on your body tag and include the javascript files seperately
later in the <BODY>. I have had better luck with loading pages that
immediately try to run javascript by loading all javascript in the <head>
tag. 

-----Original Message-----
From: Edward King [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 7:56 AM
To: [EMAIL PROTECTED]
Subject: a puzzled JSP question!!!


I encountered a puzzled JSP question.I have a HTML file,I have a link in
this HTML,for example:

<a href="http://192.168.39.143:8080/EPG/input.jsp"; style="color:#00FA9A"
>Input System</font></a>

I use Apache Tomcat4.0 to deploy input.jsp. When I click above href, a
puzzled phenomena raised! My input.jsp shows only a part.When I click fresh
button of IE6,my input.jsp shows fully! Why?

My input.jsp is follows:

<%@page contentType="text/html;charset=GB2312"%>

<html>
<head>
   <title>System</title>
</head>
<body background="http://192.168.39.143:8080/EPG/images/EPG.jpg";
text="FF0000" ONLOAD=show5()>
 <form name=input
action="http://192.168.39.143:8080/EPG/servlet/programme_input";
method="POST">
   <B><font size=5 color=red>Input System</B>
   <IMG src="http://192.168.39.143:8080/EPG/images/bird.gif"; height="50"
width="100" alt="Electronic Programme Guide">
   
   <font size=2 color=blue>
   <td valign=right></TD>
   <span id=liveclock style=position:absolute;left:730px;top:30px;; width:
109px; height: 15px>
   </span> 
   
   <SCRIPT language=javascript
src="http://192.168.39.143:8080/EPG/timer.js";>
   </SCRIPT>
   
   <SCRIPT language="JavaScript"
src="http://192.168.39.143:8080/EPG/subtype.js";>
   </SCRIPT>
 
   <hr>
   <center>
      <table align="center" width="100%" cellspacing="1" cellpadding="1"
border=1>
    <tr>
     <td align="right">channels:</TD>
     <td>
     <select name="channel">
         <option value=0>SKY TV1
         <option value=1>SKY TV2
         <option value=2>SKY TV3
         <option value=3>SKY TV4
         <option value=4>SKY TV5
         <option value=5>SKY TV6
     </select>
     </TD>
  </tr>
  <tr>
     <td align="right">names:</TD>
     <td><input type="Text" name="programme" align="left" size="30">
     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     ��Ŀ����:
     <select name="type" onChange="myFunc()">
         <option value=0>news
         <option value=1>sport      
     </select>
     
     <select name="subtype" STYLE="width:80">
         <option value=0>important
         <option value=1>general
     </TD>
  </tr>
  <tr>
     <td align="right">dates:</TD>
     <td><input type="Text" name="date" align="left" size="10"
maxlength="10"></TD>
  <tr>
     <td align="right" valign="top"> begintime:</td>
     <td style="valign:top"><input type="Text" name="start" align="left"
size="5" maxlength="5">
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;
     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     stoptime:
     <input type="Text" name="stop" align="right" size="5"
maxlength="5"></TD>
 </tr>
     
      </table>
      <hr>
      <br>
      <input type="Submit" name="okbutton"
style="font-size:20;color:#FF0000;background:#7FFD4" value="submit">
      <input type="reset" name="cancelbutton"
style="font-size:20;color:#FF0000;background:#7FFD4" value="canel">
  </center>
 </form>
</body>   
</html>    


When the file "input.jsp" shows not fully in my computer's screen,I click
right button of mouse,I got it's source code at that time,I found JSP not
fully,it follows:

<%@page contentType="text/html;charset=GB2312"%>

<html>
<head>
   <title>System</title>
</head>
<body background="http://192.168.39.143:8080/EPG/images/EPG.jpg";
text="FF0000" ONLOAD=show5()>
 <form name=input
action="http://192.168.39.143:8080/EPG/servlet/programme_input";
method="POST">
   <B><font size=5 color=red>Input System</B>
   <IMG src="http://192.168.39.143:8080/EPG/images/bird.gif"; height="50"
width="100" alt="Electronic Programme Guide">
   
   <font size=2 color=blue>
   <td valign=right></TD>
   <span id=liveclock style=position:absolute;left:730px;top:30px;; width:
109px; height: 15px>
   </span> 
   
   <SCRIPT language=javascript
src="http://192.168.39.143:8080/EPG/timer.js";>
   </SCRIPT>
   
   <SCRIPT language="JavaScript"
src="http://192.168.39.143:8080/EPG/subtype.js";>
   </SCRIPT>
 
   <hr>
   <center>
      <table align="center" width="100%" cellspacing="1" cellpadding="1"
border=1>
    <tr>
     <td align="right">channels:</TD>
     <td>
     <select name="channel">
         <option value=0>SKY TV1
         <option value=1>SKY TV2
         <option value=2>SKY TV3
         <option value=3>SKY TV4
         <option value=4>SKY TV5
         <option value=5>SKY TV6
     </select>
     </TD>
  </tr>
  <tr>
     <td align="right">names:</TD>
     <td><input type="Text" name="programme" align="left" size="30">
     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     ��Ŀ����:
     <select name="type" onChange="myFunc()">
         <option value=0>news
         <option value=1>sport      
     </select>
     
     <select name="subtype" STYLE="width:80">
         <option value=0>important
         <option value=1>general
     </TD>
  </tr>
  <tr>
     <td align="right">dates:</TD>
     <td><input type="Text" name="date" align="left" size="10"
maxlength="10"></TD>
  <tr>
     <td align="right" valign="top"> begintime:</td>
     <td style="valign:top"><input 

Why JSP can't parse itself in fully?  I have asked so many people of my
colleagues,but none of them can solve my question!
Please help!!!

Thanks in advance!
Best Regards,
Edward King
N�����r��zf��?��lz��j���w(?��?�Ƞ���%#?1$Ţ�b��-�����b����ڽ?��&?an�r��IH
��
LDDI0?D�J����^��?,�rR?����^��������j�m���j?�����ڲ�ܢo㲘���޲�m�Xm�����ڲ
�ܢo鮇nr?��}���ia���0z�^������?㲟㲗ڪ;)��i�??.��(��ګ��u�c��m���?#����
'^��&
*****************************************************************
DISCLAIMER:   The information contained in this e-mail may be confidential
and is intended solely for the use of the named addressee.  Access, copying
or re-use of the e-mail or any information contained therein by any other
person is not authorized.  If you are not the intended recipient please
notify us immediately by returning the e-mail to the originator.    

==========================================================================To 
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to