asdkfjasdfasf
asdkfjasdfasf
asdkfjasdfasf
asdkfjasdfasf
asdkfjasdfasf
asdkfjasdfasf
asdkfjasdfasf
asdkfjasdfasf
asdkfjasdfasf
asdkfjasdfasf
asdkfjasdfasf
asdkfjasdfasf
asdkfjasdfasf
asdkfjasdfasf
asdkfjasdfasf
asdkfjasdfasf
asdkfjasdfasfasdkfjasdfasf
asdkfjasdfasf
asdkfjasdfasf
asdkfjasdfasf  这其实是我弄的聊天室程序的一部分。当不停输入一段时间后,就会出现如上这样一行显示不出的情况。其实在那里是有字的,我一选中字就出来了。而且,字不出现的行也是随机的。

解决方案 »

  1.   

    上面的文件名叫:wordboard.jsp
    下面是我的程序的另两部分:
    *chatpage.htm<html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=GB18030">
    <title></title>
    </head>
    <frameset rows="60%,*">
        <frame src="wordboard.jsp" noresize scrolling="auto">
        <frame src="inputarea.jsp"  scrolling="no">
        <noframes>
        <body>
        <p>This page uses frames. The current browser you are using does not support frames.</p>
        </body>
        </noframes>
    </frameset>
    </html>*inputarea.jsp<html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=GB18030">
    <title>Insert title here</title>
    </head>
    <body>
    <form method="POST" action="inputarea.jsp">
    <p align="center"><textarea rows="9" name="speak" cols="103">
    </textarea>
    <br>
    <input type="submit" value="提交" name="B1">   
    <input type="reset" value="全部重写" name="B2"></p> 
    </form>
    <%
    request.setCharacterEncoding("GB18030");
    if(application.getAttribute("chat")==null)
    {
    //可能要处理线程同步问题
    application.setAttribute("chat","");
    }if(request.getParameter("speak")!=null)
    {
    application.setAttribute("chat",application.getAttribute("chat")+"<br>"+(String)request.getParameter("speak"));

    }
    %>
    </body>
    </html>
    麻烦各位高手啦!!!!