Distributing files within J2EE servlet .war archives


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Distributing files within J2EE servlet .war archives

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Posts
    3

    Distributing files within J2EE servlet .war archives

    Hi,

    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,

    Theo

  2. #2
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    255
    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-05-2005, 12:10 AM
  2. Replies: 1
    Last Post: 09-09-2001, 12:56 AM
  3. Running Servlet on J2EE
    By Zoe in forum Java
    Replies: 1
    Last Post: 07-19-2000, 09:57 AM
  4. Distributing Files
    By Ajendra in forum VB Classic
    Replies: 4
    Last Post: 06-12-2000, 08:20 AM
  5. Replies: 0
    Last Post: 04-04-2000, 05: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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

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