这是源文件:当上传文件超过1M时,页面将报错....异常应该怎么捕捉呢?<%@ page contentType="text/html; charset=gb2312" language="java" import="com.jspsmart.upload.*" errorPage="" %>
<%request.setCharacterEncoding("gb2312");%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
</head><body>
  <h2> -- JspSmartUpload</h2>
<jsp:useBean id="mySmartUpload" scope="page" class="com.jspsmart.upload.SmartUpload"/>
<%
  int count=0;
  mySmartUpload.initialize(pageContext);
  mySmartUpload.setAllowedFilesList("htm,txt,,");
  //mySmartUpload.setMaxFileSize(1024*1024);  mySmartUpload.upload();
  for(int i=0; i < mySmartUpload.getFiles().getCount(); i++)
  {
com.jspsmart.upload.File myFile = mySmartUpload.getFiles().getFile(i);

if(!myFile.isMissing())
{
try{
           myFile.saveAs("c:\\Upload\\"+myFile.getFileName(),mySmartUpload.SAVE_PHYSICAL);
           count++;
           //out.println("ContentType = " + myFile.getContentType());
   } 
   catch(SecurityException e) 
   { 
   out.println(e);
   }
}else {
  out.println("错误:文件没找到...");
}
  }
  out.println("成功上传了"+count+"个文件");
%>
<%
  out.println(mySmartUpload.getRequest().getParameter("sm1"));
%>
</body>
</html>