`
huangxx
  • 浏览: 321901 次
  • 来自: ...
社区版块
存档分类
最新评论

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". 
分享到:
评论

相关推荐

    医院管理系统.rar

    super.destroy(); // Just puts "destroy" string in log // Put your code here } /** * The doGet method of the servlet. * * This method is called when a form has its tag value method ...

    java一个论坛的源码

    super.destroy(); // Just puts "destroy" string in log // Put your code here } /** * The doGet method of the servlet. * * This method is called when a form has its tag value method ...

    基于JAVa的网上商城项目完整源码.zip

    super.destroy(); // Just puts "destroy" string in log // Put your code here } /** * The doGet method of the servlet. * * This method is called when a form has its tag value method ...

    Servelt技术做的E家园

    super.destroy(); // Just puts "destroy" string in log // Put your code here } /** * The doGet method of the servlet. * * This method is called when a form has its tag value method ...

    购物网站系统

    super.destroy(); // Just puts "destroy" string in log // Put your code here } /** * The doGet method of the servlet. * * This method is called when a form has its tag value method ...

    网上书城 购物系统 jsp

    super.destroy(); // Just puts "destroy" string in log // Put your code here } /** * The doGet method of the servlet. * * This method is called when a form has its tag value method ...

    网上购物系统

    super.destroy(); // Just puts "destroy" string in log // Put your code here } /** * The doGet method of the servlet. * * This method is called when a form has its tag value method equals ...

    jsp和servelet 的学习和使用

    super.destroy(); } public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request, response); } public void doPost...

    servlet2.4doc

    Called by the servlet container to indicate to a servlet that the servlet is being taken out of service. destroy() - Method in class javax.servlet.GenericServlet Called by the servlet container to ...

    java程序员滴宝典

    2. **服务请求**:通过调用`servlet.service()`方法处理请求,根据请求的不同调用不同的`do***()`方法。 3. **销毁**:当servlet不再需要时,Web容器调用`servlet.destroy()`方法来释放资源。 示例: ```java ...

    java面试题最容易犯错的8道.docx

    `service()` 方法会根据请求类型调用相应的 `doXXX()` 方法,如 `doGet()` 或 `doPost()`。 - 与 CGI(Common Gateway Interface)相比,Servlet 更高效,因为它在服务器进程中保持活跃,多线程处理请求,而CGI每次...

    Java全阶段综合笔试面试题(含答案)

    ### Java全阶段综合笔试面试题解析 #### 一阶段知识点详解... doGet和doPost的区别** - `doGet`: 处理GET请求。 - `doPost`: 处理POST请求。 以上涵盖了Java基础知识到高级特性的重要知识点,对于面试准备非常有用。

    Java全阶段综合笔试面试题(含答案).docx

    - 调用父类方法: 使用`super.myMethod()`。 - 调用父类构造器: 使用`super([参数列表])`。 #### 二阶段:进阶知识点 37. **Java数据库编程包含哪些类?Java数据库编程的基本过程是什么?** - 包含`...

    最新Java面试宝典pdf版

    29、super.getClass()方法调用 21 30、String是最基本的数据类型吗? 22 31、String s = "Hello";s = s + " world!";这两行代码执行后,原始的String对象中的内容到底变了没有? 22 32、是否可以继承String类? 23 33...

    Java面试宝典2012版

    29、super.getClass()方法调用 21 30、String是最基本的数据类吗? 22 31、String s = "Hello";s = s + " world!";这两行代码执行后,原始的String对象中的内容到底变了没有? 22 32、是否可以继承String类? 23 ...

    Java面试宝典-经典

    29、super.getClass()方法调用 21 30、String是最基本的数据类型吗? 22 31、String s = "Hello";s = s + " world!";这两行代码执行后,原始的String对象中的内容到底变了没有? 22 32、是否可以继承String类...

Global site tag (gtag.js) - Google Analytics