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 9320715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T03:42:22+00:00 2026-06-19T03:42:22+00:00

When I use eclipse to develop struts2. I found the struts.xml file can be

  • 0

When I use eclipse to develop struts2. I found the struts.xml file can be put in src folder or WebContent\WEB-INF\classes. Both paths are ok.

What’s the difference? what’s better? Does different path affect the performance or other thing? Is there any other path for struts.xml file?

And the web.xml only can be put in WebContent\WEB-INF ? Or any other path for web.xml?

  • 1 1 Answer
  • 0 Views
  • 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-19T03:42:23+00:00Added an answer on June 19, 2026 at 3:42 am
    1. From the web app’s standpoint, there’s no difference: struts.xml is expected to be at the root of the classpath after deployment. How and when it gets there is irrelevant.

    2. Putting the config file in the source directory is better, because you shouldn’t need to manage the class directory itself. Tools like Maven move artifacts from a project’s src/main/resources directory to the classpath. It won’t move an XML file from src/main/java unless specifically configured to do so.

    3. No.

    4. You may override the default location. There’s rarely a good reason to; so don’t. If you’re using multiple config files it’s fine to put them in packages, but I’d leave them on the classpath.

    5. That’s a totally unrelated question, but it should stay in the default location, WEB-INF. WebContent is project-specific (Eclipse)–you’d need to configure the deployment/packaging process to find it.

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

Sidebar

Related Questions

I'm trying to use eclipse for Java EE to develop web applications. I need
I use eclipse to develop an app engine project on maven that require war
I used to develop a habit in Eclipse to use Error List to check
I am using eclipse to develop a web application. Just today I have updated
How feasible is it to use Eclipse to develop .NET applications? Is it best
Is it possible to use Eclipse IDE and GAE plugin to develop and deploy
I want to use Eclipse to develop C++ projects on Linux. Particularly I want
I'm using Eclipse to develop Android application, now I want to use Bluestack as
I use eclipse + ADT (andoid development tool) plugin to develop my android application.
I develop an Eclipse RCP application which makes heavy use of OSGi bundles which

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.