社区
Web 开发
帖子详情
急!jspmartupload在resin下上传文件正常,为什么在websphere下却一直处于响应状态?
hnyry
2003-10-15 11:57:06
用jspmartupload在resin下能正常上传文件,而同样的上传程序在websphere服务器下却不能正常运行,上传文件时服务器一直处于响应状态,手工终止响应后查看,文件并没有传到指定位置。不知是服务器设置问题还是程序需做相应的修改,哪位高手
请回帖如何解决,高分伺候。
...全文
23
1
打赏
收藏
急!jspmartupload在resin下上传文件正常,为什么在websphere下却一直处于响应状态?
用jspmartupload在resin下能正常上传文件,而同样的上传程序在websphere服务器下却不能正常运行,上传文件时服务器一直处于响应状态,手工终止响应后查看,文件并没有传到指定位置。不知是服务器设置问题还是程序需做相应的修改,哪位高手 请回帖如何解决,高分伺候。
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
1 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
hnyry
2003-10-15
打赏
举报
回复
提交后执行的源代码如下:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page contentType="text/html; charset=GBK" import="java.io.File"%>
<jsp:useBean id="tbl_unitdetailins" scope="page" class="pageman.tbl_unitdetailins" />
<jsp:setProperty name="tbl_unitdetailins" property="*" />
<jsp:useBean id="SmartUpload" scope="page" class="com.jspsmart.upload.SmartUpload" />
<jsp:setProperty name="SmartUpload" property="*" />
<!--%
image2=request.getParameter("image2");
tbl_unitdetailins.setLock("n");
tbl_unitdetailins.setImage2(image2);
tbl_unitdetailins.execute(pageContext);
%-->
<%
String flag2="yes";
String unit_id=request.getParameter("unit_id");
int unit_id_int=Integer.parseInt(unit_id);
SmartUpload.initialize(pageContext);
SmartUpload.upload();
try{
String image=SmartUpload.getFiles().getFile(0).getFileName();
out.print("image="+image);
//图片
if(image!=null&&(!image.equalsIgnoreCase(""))){
tbl_unitdetailins.setImage(image);
String path=request.getRealPath("/"); //获得根目录
path=path+"\\common\\image";
// out.print("<br>"+path);
System.out.println("$$$1"+path);
File f=new File(path,image);
if(f.exists()){
%>
<script language="javascript">
alert("图片1文件名已存在,请修改后再上传!");
//window.location="/common/news_manage_write.jsp";
history.back();
</script>
<%
flag2="no"; }
}
String image2="";
if(unit_id_int==3){
image2=SmartUpload.getFiles().getFile(1).getFileName();
out.print("image2="+image2);
}
if(image2!=null&&(!image2.equalsIgnoreCase(""))){
tbl_unitdetailins.setImage2(image2);
String path=request.getRealPath("/"); //获得根目录
path=path+"\\common\\image";
// out.print("<br>"+path);
System.out.println("$$$1"+path);
File f=new File(path,image);
if(f.exists()){
%>
<script language="javascript">
alert("图片2文件名已存在,请修改后再上传!");
//window.location="/common/news_manage_write.jsp";
history.back();
</script>
<%
flag2="no"; }
}
}
catch(Exception e){
out.print("操作失败,图片没上传!");
}//end try in try
if(flag2.equals("yes"))
{
//tbl_unitdetailins.setDetail_id(detail_id);
tbl_unitdetailins.setLink(SmartUpload.getRequest().getParameter("link"));
tbl_unitdetailins.setUnit_id(SmartUpload.getRequest().getParameter("unit_id"));
tbl_unitdetailins.setTitle(SmartUpload.getRequest().getParameter("title"));
tbl_unitdetailins.setFlag(SmartUpload.getRequest().getParameter("flag"));
tbl_unitdetailins.setLinkstate(SmartUpload.getRequest().getParameter("linkstate"));
if(SmartUpload.save("/common/image",SmartUpload.SAVE_VIRTUAL)>0)
{out.print("<br>上传文件成功!");}
else{
}
if(tbl_unitdetailins.execute(pageContext)>0)
{
%>
<SCRIPT LANGUAGE="JavaScript">
alert("增加成功!");
window.opener.location.reload();
window.close();
window.opener.top.contents.location.reload()
//window.location.replace("/news/news_manage_list.jsp");
</SCRIPT>
<%
//tbl_newsins.setAllnull();
%>
<%
}else{
%>
<SCRIPT LANGUAGE="JavaScript">
alert("增加不成功!");
window.opener.location.reload();
window.close();
window.opener.top.contents.location.reload()
//-->
</SCRIPT>
<%}}//flag2=yes
%>
<script language="javascript">
window.opener.location.reload();
window.close();
</script>
Websphere
8.5安装
1、IBM Intallation Manager的安装。 2、
Websphere
8.5的安装。 3、IHS8.5的安装。 4、WAS插件for IHS的安装。
Websphere
8.5配置
由于,从
WebSphere
Application Server 8开始,IHS的安装不再有IBM HTTP Administration Server的安装。 取而代之的是,WAS的自定义工具中的【Web服务器插件配置工具】。 2、数据源配置 MySQL自定义数据源配置。 ...
教你运行第一个基于Openliberty的应用
IBM在2017年10月宣布
WebSphere
Liberty的开源版本OpenLiberty。OpenLiberty 为基于开源产品的开发人员提供了理想选择,它即包含了来自
WebSphere
Liberty 的稳健且成熟的 Java EE 基础功能,又包含了MicroProfile ...
WebSphere
是什么?
IBM最初的设计目标是建立下一代网络环境的一站式环境,到现在IBM
WebSphere
已经发展到能够满足现在各组织所面临的各种不同的应用需求,包括增加运行效率、增强客户忠诚度以及整合独立开发的系统等业务需求。...
websphere
停止服务,删除概要文件
开发
Websphere
的应用程序时,常常需要启停服务器,但启停程序隐藏路径太深,每次使用都要找半天。这里给出windows下启停服务器的几个快捷方式,将快捷方式放到菜单上,可以方便的使用。使用命令行启动比在图形用户...
Web 开发
81,091
社区成员
341,719
社区内容
发帖
与我相关
我的任务
Web 开发
Java Web 开发
复制链接
扫一扫
分享
社区描述
Java Web 开发
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章