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

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.

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

The action /Login should be /YourWebAppName/Login .

ow...
thank you very much

it worked.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.