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

  • SEARCH
  • Home
  • 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 6036815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:58:50+00:00 2026-05-23T05:58:50+00:00

I am using jsp to develop a web application…using tomcat server… I am facing

  • 0

I am using jsp to develop a web application…using tomcat server…
I am facing a bit problem in creating the web.xml file….what confusion i am having is that can an application have more than one web.xml file(obviously with a different name)? and what actually does the web.xml file does…..
in the tomcat webapp directory there is already a web.xml file…when i am making another application so should this file be delted or do i have to edit it or can i just use another one??
have got many more questions but i will appear confusing so will do the edit after i get an answer..


i am new to web development and this thing just struck me now….
would highly appreciate any help….
answer can be as basic as possible or to say make me understand as i m 10 year old..

  • 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-23T05:58:51+00:00Added an answer on May 23, 2026 at 5:58 am

    Duplicate of this
    See also here

    The web.xml that is included in tomcat is for global settings. For basic demo applications that you are running on you local machine no need to touch it.
    Each web application that you deploy will have it’s own web.xml file. This file is what tells the application server (in your case tomcat) a little about the application.
    For example the name of you application.
    When someone accesses the server http://localhost:8080/ where should the request be directed. Which java file should be given the responsibility to handle it. The web.xml defines a high level path. For example if your web.xml defines the name of your application as “myApp” then all requests directed to http://localhost:8080/myApp will be directed to be handled by myApp. The web.xml all defines the default page, and session timeout if different than global settings.
    After that the myApp web.xml file will define all the servlets (the java code that is capable of handling web requests) along with what filters and listeners should be invoked along the way. You can define in your web.xml that all requests with the suffix “jsp” will be handled by a DispatchServlet, and all requests that end in “jsf” will be handled by a JsfServlet, or whatever.
    If you are using a framework like Spring or JSF or whatever, they usually come with instructions on how to set up the web.xml and then after that you can pretty much forget about 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 develop a very simple Java web application using JSP and Servlets.
I am planning to develop a web-application just to test my knowledge on JSP/Servlets.
I'm using Netbeans 6.8 to develop application using JSP. I'm able to work with
I want to develop a web application in JSP ,in which a user can
I am developing Android Web App using JSP with xml parsing. I developed it
I am trying to develop a JSP application using Eclipse 3.6 Helios. Now I
I have web application developed using JSP and struts. I am just looking out
Here is how our Tomcat webserver is currently setup. We are using jsp for
I want to develop a website web chat application like yahoo. Only difference is
I am used to develop web applications in Java (Struts, Spring, JSP...). But now

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.