Struts-config.xml
(无符号 有且只有一次; + 一次或多次; * 不出现或多次; ? 不出现或一次) |
<!element struts-config(data-sources?,form-beans?,global-exceptions?, Global-forwards?,action-mapping?,controller?,message-resources*,plug-in*)>
|
(属性id,className,key,type,都是可选) <!element data-sources(data-source*)> <!element data-source(set-property*)> <!element set-property(id,property,value)> 注(Property:bean的名称;) (value:传到bean中setter()的值)
|
(属性className,dynamic,name,type,其中name,type必须) <!element form-beans(form-bean)> <!element form-bean(icon?,display-name?,description?,set-property*,form-property*)> (form-property属性:className,initial,name,type, name,type必须) |
(属性className,handler,key,path,scope,type,bundle,其中type必须) <!element global-exceptions(exception*)> <!element exception(icon?,desplay-name?,description?,set-property*)>
|
<!element global-forwards(forward*)> <!element forward(icon?,display-name?,description?,set-property*)> (forward属className,contextRelative,name,path,redirect,name,path必须) |
<!element action-mappings(action*)> <!element action(icon?,display-name?,description?,set-property*,exception*,forward*)> (action属性 attribute,className,forward,include,input,name,path,parameter,prefix,roles,scope,suffix,type,unknown,validate,其中path必须) 另若name有,则attribute,input,scope,prefix都必须 |
(属性 bufferSize,className,contentType,debug,forwardPattern,inputForward,locale,maxFileSize,multipartClass,nocache,pagePattern,processorClass,tempDir) <!element controller (set-property*)>
|
(属性className,factory,null,key,parameter,其中parameter必须) <!element message-resources(set-property*)> |
(属性className) <!element plug-in(set-property*)> |