Solved

First Run Tomcat 404 Servlet not found

Posted on 2004-04-20
1
402 Views
Last Modified: 2006-11-17
I successfully compiled servlet 'upload' in \web-inf\classes folder.  When I tried to execute it from the browser using 'http://localhost/testup.htm' HTLM form I get "The requested resource (/upload) is not available."  Do I have to tell Tomcat where to find it.  If so, How do I do this.  Is it in the Server.xml or Web.xml,

0
Comment
Question by:mlcktmguy
1 Comment
 

Accepted Solution

by:
caz_2001ie earned 125 total points
ID: 10871559
Hope this helps

1)Ensure your servlet is running to begin with

2)Try using the following format for calling your servlet from your html
- dont forget to specify the port 8080 which is the default web port on your computer
- login is the name of my servlet you should replace this with your servlet name with no dot extension  .just how you see it below

<FORM method="post" action="http://localhost:8080/login">
      <p>User Name: <input name=name type=text></p>
          <p>Password: <input name=password type=password></p>
<input type=submit name=submit value=submit>
        <input type=reset name=reset value=reset>
</font>
</FORM>
0

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

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
This video teaches users how to migrate an existing Wordpress website to a new domain.

707 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

11 Experts available now in Live!

Get 1:1 Help Now