create new web application

Posted on 2005-04-14
Last Modified: 2012-05-05
I want to create a webapplication called 'test' in Tomcat 5.0.28.
I want to deploy a simple servet which says helloworld.
Can anybody give me some tips as to how to create a web application and delpy it?
Question by:anumit
    LVL 19

    Accepted Solution

    under $TOMCAT_HOME/webapps sirectory create directory test
    Create following directory structure under test:

               -- classes
    put web.xml file into test/WEB-INF directory.
    copy your servlet class files into test/WEB-INF/classes directory.
    make mapping to your servlet in web.xml file.

    access you servlet by calling:

    replace servletPath by path which you defined in web.xml

    Author Comment

    Thanks for your help. I got it working.
    I had to lok for syntax of web.xml file on the net.
    This is a sample web.xml file.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
    If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now