The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-r
2017-08-23 13:03
561 查看
问题:
在编写struts.xml时,没有任何语法错误,但就是报错----------The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-ref?,default-action-ref?,default-class-ref?,global-results?,global-exception-mappings?,action*)".
解决:
其实看懂英文的意思就ok。。。package标签中的元素,必须匹配 result-types?,interceptors?,default-interceptor-ref?,default-action-ref?,default-class-ref?,global-
results?,global-exception-mappings?,action* 这个顺序。
注: 1. ?代表前面的字符最多只可以出现一次(0次、或1次);
2. * 号代表字符可以不出现,也可以出现一次或者多次(0次、或1次、或多次)。
3. + 号代表前面的字符必须至少出现一次(1次或多次)。
在编写struts.xml时,没有任何语法错误,但就是报错----------The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-ref?,default-action-ref?,default-class-ref?,global-results?,global-exception-mappings?,action*)".
解决:
其实看懂英文的意思就ok。。。package标签中的元素,必须匹配 result-types?,interceptors?,default-interceptor-ref?,default-action-ref?,default-class-ref?,global-
results?,global-exception-mappings?,action* 这个顺序。
注: 1. ?代表前面的字符最多只可以出现一次(0次、或1次);
2. * 号代表字符可以不出现,也可以出现一次或者多次(0次、或1次、或多次)。
3. + 号代表前面的字符必须至少出现一次(1次或多次)。
相关文章推荐
- The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-r
- The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-r
- The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-ref?,default-action-ref?,default-class-ref?,global- results?,global-exception-mappings?,action*)".
- “The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-
- The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-r
- The content of element type "package" mustmatch "(result-types?,interceptors?,default-interceptor-re
- The content of element type "package" must match "(result-types?,interceptors?,default-intercept .
- struts2---The content of element type "package" must match "(result-types?,interceptors?,default-int
- 报错:“The content of element type "package" must match "(result-types?,interceptors?,default-intercept
- The content of element type "package" must match "(result-types?,interceptors?,default-intercept .
- struts2---The content of element type "package" must match "(result-types?,interceptors?,default-int
- The content of element type "package" must match "(result-types?,interceptors?,default-intercept
- The content of element type "package" must match "(result-types?,interceptors?,default-intercept .
- 错误:“The content of element type "package" must match "(result-types?,interceptors?,default-intercept
- struts2---The content of element type "package" must match "(result-types?,interceptors?,default-int
- 如果出现The content of element type "package" must match "(result-types?,interceptors?,default-interce
- The contenTht of element type "package" must match "(result-types?,interceptors?,default-intercept .
- The content of element type "package" must match "(result-types?interceptors?d
- “The content of element type "package" must match "(result-types?,interceptors?,
- struts.xml错误提示:The content of element type "package" must match "(result-types?,interceptors?,defaul