发送Post请求但是Servlet却执行DoGet方法;就是不管我发送Get或Post请求,在Servlet中都只触发DoGet方法 10
packagecom.GLLink.eDonkeyHelper.getOpenID_FromID.Package;importjava.io.IOException;im...
package com.GLLink.eDonkeyHelper.getOpenID_FromID.Package;import java.io.IOException;import java.io.PrintWriter;import javax.servlet.ServletException;import javax.servlet.http.HttpServlet;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;public class Get_OpenID_FormID_Class extends HttpServlet{/** * */private static final long serialVersionUID = 4959574604892362950L;@Overrideprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { // TODO Auto-generated method stub System.out.println("GET GET" );}@Overrideprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { System.out.println("POST POST" );}测试serlet,只重写了DoGet/DoPost方法,然后不管是发送POST请求还是Get请求,serlet都只执行DoGet方法,有谁能帮忙看下,拜托了。。。。
展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询