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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:42:00+00:00 2026-05-22T01:42:00+00:00

What is the meaning of web.xml id attribute of the web-app tag? Eclipse generated

  • 0

What is the meaning of web.xml id attribute of the web-app tag?

Eclipse generated it as id=”WebApp_ID”. I was using version the Servlet specification version 2.5, I switched to using 3.0, with the suggestion of this answer that doesn’t include that id.

Is it really necessary? What is the value supposed to be?

  • 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-05-22T01:42:01+00:00Added an answer on May 22, 2026 at 1:42 am

    The newer versions of the servlet spec use .xsd files with no further information on the id attribute, but if you go back to the older versions with .dtd, such as web_app_2_2.dtd, you find:

    The ID mechanism is to allow tools to
    easily make tool-specific references
    to the elements of the deployment
    descriptor. This allows tools that
    produce additional deployment
    information (i.e information beyond
    the standard deployment descriptor
    information) to store the non-standard
    information in a separate file, and
    easily refer from these tools-specific
    files to the information in the
    standard web-app deployment
    descriptor.

    For example, WebSphere Application Server used the id mechanism in its old bnd and ext files:

    web.xml:
    <web-app id="WebApp_ID" ...
    
    ibm-web-app-bnd.xmi:
    <webappbnd:WebAppBinding ...
      <webapp href="WEB-INF/web.xml#WebApp_ID"/>
    

    (Thankfully, this is tool-friendly-but-developer-annoying use of id attributes is no longer necessary with the newer .xml file format for ibm-web-bnd/ext, but I digress.)

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

Sidebar

Related Questions

Seems that web.xml for a servlet has an element called <enabled>false</enabled> that can be
I use Eclipse IDE: Eclipse Java EE IDE for Web Developers. Version: Indigo Release
Please guide what is meaning by Web is stateless in simple words ? Kindly
I have a number of elements on a web page, that are scattered, meaning
What is meaning of Use Custom Permissions check-box in Magento installer? version 1.7.0.0
Saw a problem recently where all 200 web container threads became hung, meaning none
I've been developing my first web based app for about two months now (I'm
I'm using MBProgressHUD to show spinner while loading some web pages. for some sites,
My company develops a web application (in Java using GWT) that employs the Google
In my web project using CDI, Netbeans 7.1.2 warns on my custom qualifier @Qualifier

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.