org.apache.jasper.JasperException: java.util.MissingResourceException 解决方案

正在学习Stripes,遇到这样一个错误:
org.apache.jasper.JasperException: java.util.MissingResourceException: Could not find an error message with any of the following keys:...
org.apache.jasper.JasperException: java.util.MissingResourceException: Could not find an error message with any of the following keys:...	
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:500)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:428)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	net.sourceforge.stripes.action.ForwardResolution.execute(ForwardResolution.java:110)
	net.sourceforge.stripes.controller.DispatcherHelper$7.intercept(DispatcherHelper.java:508)
	net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:158)
	net.sourceforge.stripes.controller.HttpCacheInterceptor.intercept(HttpCacheInterceptor.java:99)
	net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:155)
	net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor.intercept(BeforeAfterMethodInterceptor.java:113)
	net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:155)
	net.sourceforge.stripes.controller.ExecutionContext.wrap(ExecutionContext.java:74)
	net.sourceforge.stripes.controller.DispatcherHelper.executeResolution(DispatcherHelper.java:502)
	net.sourceforge.stripes.controller.DispatcherServlet.executeResolution(DispatcherServlet.java:286)
	net.sourceforge.stripes.controller.DispatcherServlet.service(DispatcherServlet.java:170)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:247)

root cause 


导致这个错误的原因是,当Stripes验证失败时,不知道怎样返回这些错误信息,解决方案也很简单:从 Stripes 包中复制一份 StripesResources.properties 到项目的源代码跟目录下。当然你可以从本文章的附件中获得这个文件。

你可能感兴趣的:(标签,message,Stripes)