<%@ page language="java" pageEncoding="gb2312"%>
<%@ page import="java.util.Collection,java.util.Iterator"%>
<%@ page import="dy.web.beans.NewsClass" %>
<%@ page import="dy.web.mgr.NewsClassMgr" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- function go(i) { var temp =i; fPopUpCalendarDlg(temp); } --> <!-- function check_input(){ var topictest=document.addnewsfrom.Topic.value; var contenttest=document.addnewsfrom.contest.value; if(topictest==''){ alert('请输入新闻标题!'); return false; } } -->
<%!String attachfilename=""; %>
<%[color=red]//后台传过来的参数[/color]
attachfilename=(String)request.getAttribute("attachfilename");
System.out.println("接受到了"+attachfilename);
if(attachfilename==null){
%> alert("文件上传出错,请您重新上传!");
<%
}else{
%>
<%
}
%>
当前位置:新闻管理 - 添加新闻 |
*标题: | ||||||||
附件: |
| |||||||
删除 | ||||||||
在上面代码中在未上传之前可以获得所要的值,但是在长传之后就是在后台上传处理之后就无法再次获得input的值!高手们请进啦!