Dear all, My servlet "RegistraMarcaPropriedade" that was working fine suddenly stopped working. I am not sure if the problem is because of my navigation or if it's related to Tomcat.
Can someone give me a hint? ====================> All I get is this message: type Status report message /servlet/RegistraMarcaPropriedade description The requested resource (/servlet/RegistraMarcaPropriedade) is not available. ====================> This is my web.xml file: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <display-name>Presidencia da Republica</display-name> <description>SISC by Siomara Pantarotto</description> <servlet> <servlet-name>RegistraMarcaPropriedade</servlet-name> <servlet-class>RegistraMarcaPropriedade</servlet-class> <servlet-name>PesquisaTabPeriferica</servlet-name> <servlet-class>PesquisaTabPeriferica</servlet-class> </servlet> <servlet-mapping> <servlet-name>RegistraMarcaPropriedade</servlet-name> <url-pattern>/servlet/RegistraMarcaPropriedade</url-pattern> <servlet-name>PesquisaTabPeriferica</servlet-name> <url-pattern>/servlet/PesquisaTabPeriferica</url-pattern> </servlet-mapping> </web-app> ====================> my jsp is this one that calls the htm (GET) bellow that calls the servlet: <!-- exibeMarcaPropriedade.jsp - Display da tabela --> <!-- author Siomara Pantarotto --> <!-- version Julho 2006 --> <!-- $$ BEGIN PAGE DIRECTIVE --> <%@ page language="java"%> <%@ page import="java.util.*"%> <%@ page import="objeto.MarcaPropriedade"%> <!-- $$ END PAGE DIRECTIVE --> <html> <head><title>Exibe Tabela</title></head> <body> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%"> <tr> <td width="100%" colspan="3"> <img border="0" src="/Sisc/images/bannerPR.jpg" width="763" height="21"></td> </tr> <tr> <td width="18%"><b><font color="#008080" size="5">SISNAC</font><font color="#008000" size="5"> </font></b></td> <td width="59%"><p align="center"><font size="4"><b>Relação de Marcas de Propriedades</b></font></td> <td width="23%"> </td> </tr> <tr> <td width="18%"> </td> <td width="82%" colspan="2" align="right"> <b><font color="#FF0000"><a href="/Sisc/incluiAlteraMarcaPropriedade.htm">Adicionar Nova Marca de Propriedade</a></font></b> </td> </tr> <tr> <td width="100%" colspan="3"> <p align="center"> </p> <form method="POST" action="_derived/nortbots.htm" onSubmit="location.href='_derived/nortbots.htm';return false;" webbot-onSubmit webbot-action="--WEBBOT-SELF--"> <% // Retrieve vector with search results from the session Vector vResults = new Vector(); vResults = (Vector) session.getAttribute("vSearchResults"); if (vResults.size() != 0) // Check if search result vector is empty { %> <table border="2" cellpadding="4" cellspacing="1" width="100%" height="300"> <% // Create an object MarcaPropriedade to hold objects inside vResults vector MarcaPropriedade marcaPropriedade = new MarcaPropriedade(); for (int i=0; i<vResults.size(); i++) { marcaPropriedade = null; marcaPropriedade = (MarcaPropriedade) vResults.elementAt(i); int idMarcaPropriedade = marcaPropriedade.getIdMarcaPropriedade(); String descricao = marcaPropriedade.getDescricao(); %> <tr> <td width="50%" height="19"><%=descricao%></td> <td width="50%" height="19">Excluir / Alterar</td> </tr> <% } // end of FOR %> </table> </form> </td> </tr> <tr> <td width="100%" colspan="3"> </td> </tr> <% } else // Result vector is empty { %> <H2>Sorry!!! No results were found for this search criteria.</H2> <a href='/Sisc/index.htm'>Nova Pesquisa Search</a> </table> <% } // end of ELSE %> </body> </html> ===========================> This is the html that calls the servlet (POST) that was working perfectly before and now is lost <html> <head> <title>Inclui/Altera Marca Propriedade</title> <script language="javascript"> //////////////////////////////////////////////////////////////////////////// / // Set focus to the first form element // function focusFirst() { document.all("txtDescricao").focus(); } //////////////////////////////////////////////////////////////////////////// /// // Validate fields and submit form elements to servlet RegistraMarcaPropriedade // function doFormSubmit() { objfrm=document.incluiAlteraMarcaPropriedade; //Store the file path of the next servlet/jsp to be called strFilePath = "/servlet/RegistraMarcaPropriedade" strDescricao=objfrm.txtDescricao.value; if(isSpecialChar(strDescricao) || !isChar(strDescricao)) { alert("Favor entrar com uma descrição válida."); objfrm.txtDescricao.focus(); return false; } if(isEmpty(strDescricao)) { alert("Campo obrigatório"); objfrm.TxtNumber.focus(); return false; } objfrm.method="post"; objfrm.action=strFilePath; return true; objfrm.submit(); } //////////////////////////////////////////////////////////////////////////// /// // Clean all the fields // function doClearForm() { for(i=0;i<document.inputFormSearch.elements.length-1;i++) { if(document.inputFormSearch.elements[i].type=="text") document.inputFormSearch.elements[i].value=""; } document.all("txtDescricao").focus(); return false; } //////////////////////////////////////////////////////////////////////////// /// // Checks whether the form input element is empty // function isEmpty(formelem) { expisEmpty=/[^ ]/ return ! expisEmpty.test(formelem); } //////////////////////////////////////////////////////////////////////////// /// // Checks whether the form input element is numeric // function isNumeric(formelem) { var expisNumeric=/[a-zA-Z\*\~|@\$\%\^\&\*\(\)\#\!\`\-\+\=\.\,\?]/ return ! expisNumeric.test(formelem) } //////////////////////////////////////////////////////////////////////////// /// // Checks whether the form input element is a String // function isChar(formelem) { var expisChar=/[0-9]/; return ! expisChar.test(formelem); } //////////////////////////////////////////////////////////////////////////// /// //Checks whether the form input element contains any Special Characters or not. // function isSpecialChar(formelem) { var expisSpecialChar=/[\&\;\"\*\~\|[EMAIL PROTECTED]<\>\\\+\=\?]/ return expisSpecialChar.test(formelem) } </script> </head> <body onload="javascript:focusfirst()"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%"> <tr> <td width="100%" colspan="3"> <img border="0" src="images/bannerPR.jpg" width="763" height="21"></td> </tr> <tr> <td width="18%"> <b> <font color="#008080" size="5">SISNAC</font><font color="#008000" size="5"> </font> </b></td> <td width="59%"> <p align="center"><font size="4"><b>Cadastramento de Nova Marca de Propriedade</b></font></td> <td width="23%"> </td> </tr> <tr> <td width="18%"> </td> <td width="82%" colspan="2" align="right"> </td> </tr> <tr> <td width="100%" colspan="3"> <p align="center"> </p> <form name="incluiAlteraMarcaPropriedade"> <p align="left"> Marca de Propriedade: <input type="text" name="txtDescricao" size="66"></p> <p align="center"> <input type="submit" value="Enviar" name="btnSubmit" onclick=" javascript:return doFormSubmit()"> <input type="reset" value="Apagar" name="btnApagar"></p> </form> <p align="center"> </p> <p align="center"> </p> </td> </tr> <tr> <td width="100%" colspan="3"> </td> </tr> </table> </body> </html> --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]