---
title: "qweqweqw"
author: "xiaogyiy"
date: "2010-10-27T17:53:51Z"
tags: []
categories: ["Web前端"]
slug: "qweqweqw"
draft: false
lastmod: "2010-10-27T17:53:51Z"
id: 795787
url: "https://xiaogyiy.iteye.com/blog/795787"
---

异常 
"Document contained no data" in Netscape 
No data rendered (completely empty) page in Microsoft Internet Explorer 
可能原因 
使用一个Action的派生类而没有实现perform()方法或execute()方法。在Struts1.0中实现的是perform()方法，在Struts1.1中实现的是execute()方法，但Struts1.1向后兼容perform()方法。但你使用Struts1.1创建一个Action的派生类，并且实现了execute()方法，而你在Struts1.0中运行的话，就会得到"Document contained nodata" error message in Netscape or a completely empty (no HTML whatsoever) page rendered in Microsoft Internet Explorer.”的错误信息。 
--------------------------------------------------------------------------------------------------------------------------- 
异常 
ServletException: BeanUtils.populate 
解决方案 
在用Struts上传文件时,遇到了javax.servlet.ServletException: BeanUtils.populate异常。 
我的ActionServlet并没有用到BeanUtils这些工具类。后来仔细检查代码发现是在jsp文件里的form忘了加enctype=&quot;multipart/form-data&quot; 了。所以写程序遇到错误或异常应该从多方面考虑问题存在的可能性，想到系统提示信息以外的东西。