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

异常 
javax.servlet.jsp.JspException: Missing message for key xx.xx.xx 
Probable Causes 
这个key的值对没有在资源文件ApplicationResources.properties中定义。如果你使用eclipse时经常碰到这样的情况，当项目重新编译时，eclipse会自动将classes目录下的资源文件删除。 
资源文件ApplicationResources.properties 不在classpath中应将资源文件放到 WEB-INF/classes 目录下，当然要在struts-config.xml中定义) 
----------------------------------------------------------------------------------------------------------------- 
异常 
Cannot find message resources under key org.apache.struts.action.MESSAGE 
可能原因 
很显然，这个错误是发生在使用资源文件时，而Struts没有找到资源文件。 
Implicitly trying to use message resources that are not available (such as using empty html:options tag instead of specifyingthe options in its body -- this assumes options are specified in ApplicationResources.properties file) 
XML parser issues -- too many, too few, incorrect/incompatible versions 
----------------------------------------------------------------------------------------------------------------- 
异常 
Strange and seemingly random characters in HTML and on screen, but not in original JSP or servlet. 
可能原因 
混和使用Struts的html:form标记和标准的HTML标记不正确。 
使用的编码样式在本页中不支持。