程序页面是否和下载页面分离?若是,该button是在下载页面页面里么?
解决方案 »
- 请教一道面试题
- 我现在用了下边的方法,可是这样ie认为我的activeX不安全,还要客户端的ie设置了对没有标记为安全的ActiveX控件进行初始化和脚本运行才可以,有没有什么
- 如何用键盘的上下方向键,选择表格的行
- 有个非常难的有关于SESSION的问题
- 高分求助
- 怎么让DIV居中
- 如何实现只要单击超连接所在行,就可以实现画面转移?
- ext4.0中tree的拖拽显示selected node如何改成正在移动
- 多个div层移动问题
- 如何动态添加<option>选项
- 怎样知道当前页面是那个控件得到了焦点,并返回这个控件对象?谢!
- 如何让一个页面上下滚动的时候,上面的一个按钮始终保持可见?(随页面上下浮动)
<%@page contentType="text/html;charset=gb2312" %>
<%@page import="com.toone.oa.datumLib.client.DatumHelper"%>
<%@page import="com.toone.oa.datumLib.model.DatumModel"%>
<%@page import="com.toone.util.tracer.Debug"%>
<%@page import="java.util.Vector"%>
<%@page import="com.toone.oa.util.Tools"%><%
com.toone.oa.common.datum.util.DatumPath.setAbsPath(request);
String id=request.getParameter("id");
String orin =id;
id=Tools.decode(id);
String folderId=request.getParameter("folderId");
System.out.println("000000000000-------"+folderId);
DatumHelper dh = new DatumHelper(folderId);
DatumModel doc = (DatumModel)dh.getDatum(id);
String filename=doc.getDocu_name();
filename=new String(filename.getBytes("gb2312"),"8859_1").trim();
String contype= doc.getDocu_type(); response.setHeader("Content-Disposition", "attachment; filename="+filename);
response.setContentType("application/x-msdownload"); response.getOutputStream().write(doc.getDocu_content());
doc=null;
dh.DBFree();
%>
<html>
<SCRIPT language=JavaScript src="includes/js/util.js"></SCRIPT>
<script language=JavaScript>
function addshow(flag){
if (flag) {
add.style.display="block";
}else{
add.style.display="none";
}
}
</script>
<body>
<table width='100%'>
<tr>
<td class="functionFont" align=right><input type="button" value="新增" class="functionButton" onclick='addshow(true);'>
</body>
下面调用下载页面。
当弹出下载页面后,在点击新增,无效,也就是没有反映。
</html>