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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:04:41+00:00 2026-06-13T14:04:41+00:00

I am going to manually create some servlet files. But i checked out some

  • 0

I am going to manually create some servlet files. But i checked out some tutorial that mentions Servlet(i.e MyServlet.java) must be created under the folder ../WEB-INF/classes/ .Of course, you need to create web.xml under the folder WEB-INF to modify the servlet mapping.

But if you are using ECLIPSE JUNO to create a servlet file via Dynamic Project, the servlet will be created in the Java source folder, NOT in the /WEB-INF/classes/. And it works fine. Thus is there any difference on those two way?

  • 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-13T14:04:42+00:00Added an answer on June 13, 2026 at 2:04 pm

    Servlet source code can be placed anywhere you want. In maven projects it’s /src/main/java, as any other class. However after compiling servlet to bytecode it must be placed in .war file under /WEB-INF/classes. It doesn’t matter which tool you use (or maybe you don’t use any tool at all), it must produce .war file with predefined structure.

    That being said you are free to use any environment/IDE/tool and put your servlets source code anywhere you want, as long as you are able to produce standard .war file.

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

Sidebar

Related Questions

I can create database manually by going to cpanel. But I'd like to create
Going through happstack-lite tutorial : we build functions that have return type of ServerPart
I am manually copying some folders and files through C#, and I want to
This is done manually by going to the Error List output window and double-clicking
going thru a tutorial on python lists,I tried to write a python function which
Going through some of my older Delphi projects and upgrading them to D2009, as
Going mad now. I have a MVC solution that i've upgraded from MVC 1
I am trying to create a web API that allows someone (well, preferably a
I am trying to create a VISX extension for Visual Studio 2010 that contains
I'm currently writing some tests so that I may improve my skills with the

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.