Reputation: 700
I want to use a global result "login". But it ony works without global-results in the configuration. This is the relevant part of my configuration:
categoryList.jsp categoryDetail.jsp /WEB-INF/login.jsp
When I start my application it throws this Exception:
org.xml.sax.SAXParseException: 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*)".
What is wrong?
Upvotes: 2
Views: 4773
Reputation: 700
Got it! The order matters.
Order in struts.xml matters:
Upvotes: 7
Reputation: 370
Yes, the tags must be in order : result-types -> interceptors -> default-interceptor-ref -> default-action-ref -> default-class-ref -> global-results -> global-exception-mappings -> action*
Upvotes: 0