0

i've got a 404 error when i tried to call a servlet
it said

Not Found

The requested URL /Login was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument handle the request.

please help me solve this problem

Thank You

2
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by stocean
0

This can be due to a lot of factors:
- Web application was not properly deployed i.e deploy time failure
- Attempt to access a path/resource which doesn't exist

Without more details like the name of your web application, the URL you are trying to access, your deployment descriptor etc. it would be kinda difficult to pin point the exact reason behind this.

0

here's the code i entered for calling the Login servlet,

<form action="/Login" method="post">
        <table>
            <tr>
                <td>Username</td>
                <td>:</td>
                <td><input type="text" name="user"/></td>
            </tr>
            <tr>
                <td>Password</td>
                <td>:</td>
                <td><input type="password" name="pswd" /></td>
            </tr>
            <tr>
                <td colspan="3" align="center"><input type="submit" value="Login" /></td>
            </tr>
        </table>
    </form>

is there any mistakes in the form action command?

thank you

Edited by __avd: Added [code] tags. Encase your code in: [code] and [/code] tags.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.