Problems with servlets

0

I'm working a simple program which consists of making 2 forms and making the data reach 2 different servlets, I'm using eclipse tools with tomcat 8.5, at the time of clicking you should invite me to the page with my servlet but not it does, I understand that with the property 'action' I add the name of my servlet and should send it to me but unfortunately I get the error Status HTTP 404 - Not Found, I understand that this error occurs when the browser does not find the requested resource, this is my HTML code: Files

<h2>Subir archivo</h2>
<div id="form1-section">
    <form id="upload" action="downloadServlet" method="post" enctype="multipart/form-data">
        <label for="file">Archivo</label> <input type="file" name="file"/> 
        <input type="submit" value="Subir" />

    </form>
</div>
<!-- Escribe tu código aquí -->

<h2>Descargar Archivo</h2>
<div id="form1-section">
    <form id="Download" action="/UploadServle" method="get" enctype="multipart/form-data">
        <label for="file">Archivo</label> <input type="text" name="fileName"/> 
        <input type="submit" value="Descargar" />

    </form>
</div>

This is the structure of my project:

    
asked by Arturo Vera 23.01.2018 в 03:56
source

0 answers