Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7739047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:25:22+00:00 2026-06-01T08:25:22+00:00

I have multiple XML configs. struts.xml <struts> <include file=struts-user.xml /> <package name=baseInterceptors extends=struts-default> <interceptor

  • 0

I have multiple XML configs.

struts.xml

<struts>
  <include file="struts-user.xml" />

  <package name="baseInterceptors" extends="struts-default">
    <interceptor name="...">
       ...
    </interceptor>
       ...
  </package>

  <package name="default" extends="struts-default,baseInterceptors">
    <action name="...">
       ...
    </action >
       ...
  </package>
</struts>

struts-user.xml

<struts>
  <package name="user" extends="struts-default,baseInterceptors">
    <action name="...">
       ...
    </action >
    ...
  </package>
</struts>

But the interceptors from baseInterceptors are not available in struts-user.xml. How can I solve this problem?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T08:25:24+00:00Added an answer on June 1, 2026 at 8:25 am

    Configuration files are processed in order: The <include> is processed before the baseInterceptors and default packages are processed (read: defined).

    In other words, the included file depends on pacakges that are not yet defined.

    The package configuration docs explain this in a note near the top with an exclamation point next to it.


    Unrelated, but you’ve duplicated some configuration, which is misleading/uncommunicative: baseInterceptors already extends struts-default, so there’s no need to extend both. Consider creating something like an application-default package so it’s obvious everything in the app should extend from it. This eliminates unnecessary duplication and communicates your intent.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have set up multiple targets in a single xml file. I expect all
I have an XML schema that includes multiple addresses: <xs:element name=personal_address maxOccurs=1> <!-- address
I have a maven pom.xml file with multiple instances of a same goal defined
I have an XML file (on the left) and I want to create multiple
I have created an XML file in my solution path. My solution has multiple
I have multiple textviews in main.xml <LinearLayout... > <textview adndroid:tag=A> ... till to Z.
I have an XML valued column that has multiple parent nodes. I need to
I have a XML document with my data in it, multiple entries for the
All, I have a config xml file in the following format: <?xml version=1.0?> <configdata>
I have a large application spread across multiple Spring bean definition xml files. In

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.