知识大全 Struts常见错误及原因分析
Posted 知
篇首语:人的影响短暂而微弱,书的影响则广泛而深远。本文由小常识网(cha138.com)小编为大家整理,主要介绍了知识大全 Struts常见错误及原因分析相关的知识,希望对你有一定的参考价值。
Struts常见错误及原因分析 以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!
This page contains errors and exceptions monly encountered during web application development using Struts Along with the exception or error messages themselves potential causes of these errors are often listed along with links to additional resources To find the error you re looking for use your browser s Find or Search capability and input a few words that you are seeing in your error message Cannot retrieve mapping for action 错误信息 javax servlet jsp JspException: Cannot retrieve mapping for action /Login 可能原因 lNo action defined in struts config xml to match that specified in the JSP s <:form action="Login.do" .相关链接 No action instance for path /xxxx could be created 错误信息 No action instance for path /xxxx could be created 可能原因 lSpecial Note: Because so many different things can cause this error, it is remended that you turn your error logging/debugging levels on your web server to a high level of verbosity to see the underlying problems in trying to instantiate the action class you have written and associated with the specified action xxxx through an action mapping in the struts-config.xml file. lYour Action class specified in the struts-config.xml file under the class attribute of the action mapping for action xxxx cannot be found for a variety of reasons, including (but not limited to): ·Failure to place piled .class file for the action in the classpath (needs to be under WEB-INF/classes with the appropriate directory structure underneath this that matches the package your Action class belongs to). ·Package spelling or hierarchy specified in your action class itself (using the package keyword) does not match the spelling or plete package hierachy specified for your action class in the class attribute of the action in struts-config.xml. lAction class specified in the /xxxx action mapping in the struts-config.xml file (class attribute) does not extend (directly or indirectly) from the Action class. In other words, your custom Action class does not extend off the Struts-provided Action class or off of another class that eventually extends the Action class (such as DispatchAction. lProblem in your classpath, such as web server not being able to find ApplicationResources.properties files in the WEB-INF/classes/ directory or specified subdirectory. lProblem in struts-config.xml file with action mapping. lProblem with data-sources.xml file. 相关链接 lApplication\'s Action classes does not extend Struts-provided Action class· lPackage hierarchy/directory structure specified in struts-config.xml file differs from that hierarchy specified in the actual action class\'s file using the package /struts-use/l · lAction Mapping mistake in struts-config.xml:?forum=siaao&readthread=177 ·data-sources.xml file?:_id=30 No getter method for property XXXX of bean .apacl.BEAN 错误信息 javax.servlet.jsp.JspException: No getter method for property username of bean .apacl.BEAN 可能原因 lNo getXXXX() method defined for form field with name XXXX lThis can happen if the JSP/Struts developer fets that the name of the get method will have the same spelling as the value supplied in the Struts tag\'s property attribute, but that case will be different and is based on JavaBean specification rules. For example, my form class should have a getUsername method if my Struts form-related tag has username as the value for its property attribute. Note the difference in case marked with emphasis on the letter "U." 相关链接 lCase can trip up the matching beeen get method\'s name and name specified in Struts tag-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=58&t=000163 Exception creating bean of class .apache.struts.action.Actionform: 1 错误信息 javax.servlet.jsp.JspException: Exception creating bean of class .apache.struts.action.Actionform: 1 可能原因 lInstantiating Struts-provided Actionform class directly instead of instantiating a class derived off Actionform. This might occur implicitly if you specify that a form-bean is this Struts Actionform class rather than specifying a child of this class for the form-bean. lNot associating an Actionform-descended class with an action can also lead to this error. Cannot find ActionMappings or ActionformBeans collection 错误信息 javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionformBeans collection 可能原因 lEither the
相关参考
Struts常见的11个错误汇总 以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧! &nbs
J2EE综合——Struts常见错误的全面汇总 以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧! N
Struts2请求处理流程及源码分析 以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧! Struts
Struts2设置开发模式控制台错误信息 以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧! 在使用s
JSF和struts基于框架的错误控制与封装处理 以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!
知识大全 Struts2中action和field级别错误处理
Struts2中action和field级别错误处理 以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!
SQLServer连接中三个最常见错误原因分析 以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧! 一
Oracle常见错误代码的分析与解决一 以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧! 在使用OR
Oracle常见错误及解决方案 以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧! 没有人会否认ORA
PHP程序编译中常见错误信息及解释 以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!编写程序时无论怎样