Solved

First Run Tomcat 404 Servlet not found

Posted on 2004-04-20
1
404 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Handling onsession end function in Application.cfc 5 53
Edit a page at wix.com 8 49
Materializecss - Different Behaviors in Browser's 1 35
PHP Form Calculate Total Price 10 41
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
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ā€¦

776 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