File names such as struts-config.xml and applicationResources.properties are used by default if you use multiple modules, or specify different resource file names, these names should be modified.
1. "No Bean Found Under Attribute Key XXX" defines an actionform in Struts-Config.xml, but the class specified by the Type property does not exist, the value of the Type property should be the full name of the Form class. Or, in the definition of an action, the ActionForm specified by the Name or Attribute property does not exist.
2, "Cannot Find Bean XXX in Any Scope Generally Request.SetAttribute () in action, then you can get these objects in the steering JSP file (with a TAG or Request.GetaTRibute () method) and display it. This exception is that JSP is to get an object, but the previous action does not set objects to Request (can also be session, servletContext). It may be wrong, please check the TAG of the JSP is generally the Name property, or the parameter value of the getAttribute () method; or if the action logic has a problem without executing the setAttribute () method will turn first. There is another possibly, purely a JSP file problem, such as
3. "Missing Message for Key" XXX "" lacks the resources required, check if there is resources needed in the ApplicationResources.Properties file, for example:
<
Bean: Message Key
=
"
msg.name.prompt
"
/>
This line of code will find msg.name.prompt resources, and this exception occurs if this resource is not available in AppLiationResources.properties. When using multiple modules, pay attention to the name of the resource file to be used in the struts-config-xxx.xml of the module, otherwise, of course, what resources can not be found, this is also a very easy mistake.
4, "NO Getter Method for Property XXX Of Bean Teacher" This exception information is very clear that JSP is going to take a bean property, but this bean does not have this property. You should check the value of the Property property of a tag in the JSP. For example, the CADE in the following code should be changed to CODE:
<
Bean: Write Name
=
"
TEACHER
"
Property
=
"
cade
"
Filter
=
"
True
"
/>
5, "Cannot Find ActionMappings Or ActionformBeans Collection" to be resolved.
6. "Cannot Retrieve Mapping for Action XXX" Specifies an action = '/ xxx' in the .jsp's