如在后台处理页中有如此代码片段:
String msg = "hello";
PrintWriter out = new PrintWriter();
out.println(msg);
return null;
前台的显示页如下:
<body>
<table align="center">
<tr>
<td><p align="center">欢迎来到伊甸园</p>
<p align="center">
<textarea name="chatArea" rows="20" cols="60" readOnly="readonly"></textarea>
</p>
<div align="center">
<input name="chatMsg" type="text" size="60" onkeypress="msgHandler(event)" id="chatMsg">
<input name="button" type="button" value="提交" onClick="sendMsg()" >
</div>
</td>
</tr>
</table>
至于相关的javascript函数我就没写了,看的蝈蝈可以删掉的,那么在运行后ie的文本域中显示了hello
而在firefox中相应区域无任何显示,请各位蝈蝈指教,拜谢!!!
[ 此贴被gzerone在2007-10-12 11:50重新编辑 ]