Good Morning.
Sorry for English, because I'm using the Google translator.
I am a beginner in DSpace and do not know how to solve a problem.
I created a servlet, but when I try to call it, it gives the following
error:
HTTP Status 405 – Method Not Allowed
*Type* Status Report
*Message* HTTP method GET is not supported by this URL
*Description* The method received in the request-line is known by the
origin server but not supported by the target resource.
I've tried using the post method too, but it does the same thing.
I'm using dspace 5.6 with the Jspui UI.
Here is my servlet:
public class TesteServlet extends DSpaceServlet {
public void doDSGet(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, IOException {
System.out.println("Acessando ServletTeste pelo metodo
doGet");
}
public void doDSPost(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, IOException {
System.out.println("Acessando ServletTeste pelo metodo doPost");
}
}
The following is the servlet statement in web.xml:
<servlet>
<servlet-name>TesteServlet</
servlet-name>
<servlet-class>br.com.dglsistemas.webui.servlet.TesteServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>TesteServlet</servlet-name>
<url-pattern>/TesteServlet</url-pattern>
</servlet-mapping>
Below is my form in jsp that calls the servlet:
<form name="formTesteServlet"
action="<%=request.getContextPath()%>/TesteServlet" method="get">
<input type="text" id="user" value="Junior" />
<input type="submit" id="clickButton" value="Buscar Cpf" />
</form>
Does anyone know what I might be doing wrong?
--
You received this message because you are subscribed to the Google Groups
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.