DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Feb 2006

    Distributing files within J2EE servlet .war archives


    i have a question about J2EE. I try to add some files to a war archive, but i can't access them from within my browser.

    I use Tomcat 5.5.15, and have mapped the URL /HelloServlet to my servlet, but i can't access for instance /HelloServlet/test.txt.
    It seems everything after the /HelloServlet is ignored. The file i want to access is in the root of the .war archive, but putting it in /WEB-INF doesn't help either.

    I use Netbeans IDE 5.0 as editor for my source files.

    I hope someone can provide some help to point me to the right direction.

    Thanks in advance,


  2. #2
    Join Date
    Oct 2005
    New Jersey
    That depends on how this HelloServlet has a mapping URL defined.
    Happiness is good health and a bad memory.

Similar Threads

  1. Servlet Help
    By trixma in forum Java
    Replies: 4
    Last Post: 09-04-2005, 11:10 PM
  2. Replies: 1
    Last Post: 09-08-2001, 11:56 PM
  3. Running Servlet on J2EE
    By Zoe in forum Java
    Replies: 1
    Last Post: 07-19-2000, 08:57 AM
  4. Distributing Files
    By Ajendra in forum VB Classic
    Replies: 4
    Last Post: 06-12-2000, 07:20 AM
  5. Replies: 0
    Last Post: 04-04-2000, 04:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.