Error super.doGet super.doPost super.service

java.lang.IllegalStateException
 at org.apache.coyote.tomcat4.CoyoteResponseFacade.sendError(CoyoteResponseFacade.java:263)

Withing my login controller servlet if the user validates correctly, i send them through response.sendRedirect to a jsp view page. When i try to send them i get a

java.lang.IllegalStateException
	org.apache.coyote.tomcat5.CoyoteResponseFacade
.sendRedirect(CoyoteResponseFacade.java:352)
	mpt.pruebas.controlador.LoginController
.procesarPeticion(Unknown Source)
	mpt.pruebas.controlador.LoginController
.doPost(Unknown Source)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

  
Remove super.doGet and super.doPost

If you believe that they do something useful, then put their
calls after process.

Ahh yes, I forgot. I believe the defaults for doGet and doPost
 for the HttpServlet is to send a response that say
 "XXX Method not supported". 

你可能感兴趣的:(java,apache,jsp,servlet)