急急急!!!异常 :
java.io.FileNotFoundException: C:\fakepath\debug.txt (系统找不到指定的路径。)
<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*"
errorPage="" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@page isELIgnored="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>写邮件</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<%-- 引入DWR相关脚本 --%>
<script type="text/javascript" src="dwr/engine.js"></script>
<script type="text/javascript" src="dwr/util.js"></script>
<%-- 此处调用Java类对应的脚本,脚本名称一定要与dwr.xml文件配置的相应类的脚本名称相同 --%>
<script type="text/javascript" src="dwr/interface/registor.js"></script>
<script language="javascript" type="text/javascript">
function addemail(){
var recipients=document.getElementById("recipients").value;
var title=document.getElementById("title").value;
if(recipients == null||recipients=="" ){
alert("收件人不能为空!");
}else if(title == null||title=="" ){
alert("邮件标题不能为空!");
}else{
document.forms[0].submit();
}
}
<%-- 验证附件是否大于9M --%>
function regist(){
var filename = document.getElementById("accessory").value;
registor.isExist(filename, showResult);
}
function showResult(result){
if(result){
alert("附件附件上传成功");
}
else{
alert("附件不能大于9M!!!");
}
}
</script>
</head>
<body>
<%@ include file="login_check.jsp" %>
<form id="myForm" name="myForm" action="emailadd.action" method="post">
<input type="hidden" name="sender" value="${user.nickname}"/>
<input type="hidden" name="isread" value="未读"/>
<input type="hidden" name="isdeleted" value="0"/>
<div class="action">
<div class="t">
写邮件
</div>
<div class="pages">
<table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right" width="30%">收件人:</td>
<td align="left" colspan="2">
<select id="recipients" name="recipients">
<option value="">请选择</option>