返回信息流问题一: <%
response.addIntHeader("Refresh", 30);
%>
用上面语句实现每隔30秒刷新 请问如何停止?
问题二:做一个下拉菜单 如下:
<form action="dopost" method="post" >
<select name= "numSelect " >
<option value= "1 " > 1 </option>
<option value= "2 " > 2 </option>
<option value= "3 "> 3 </option>
</select>
用post方法传递参数到servlet,然后
response.setContentType("text/html ; charset=ISO-8859-1");
PrintWriter out = response.getWriter();
request.setCharacterEncoding("ISO-8859-1");
String a3=request.getParameter("numSelect");
然后将参数写进了文本文档
File docFile = new File("D:\\新建文本文档.txt");
try {
docFile.createNewFile();
FileOutputStream txtfile = new FileOutputStream(docFile);
PrintStream p = new PrintStream(txtfile);
p.println(a3);
txtfile.close();
p.close();
} catch (IOException e) {
e.printStackTrace();
}
可是文本文档里显示的是null 请问怎么办呢?
这是一条镜像帖。来源:北邮人论坛 / java / #22471同步于 2012/5/17
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Java机器人发帖
[菜鸟求助]JSP页面问题。。。
million
2012/5/17镜像同步5 回复
订阅后,新回复会通过你的通知中心匿名送达。
5 条回复
【 在 million 的大作中提到: 】
: 问题一: <%
: response.addIntHeader("Refresh", 30);
: %>
: ...................
问题三:
做一个如图所示的缩略图显示 可是图片一多 就排到下面那行去了 怎么办 用的是css和jquery