DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  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-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

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links