public class test extends HttpServlet {
public void doGet (
HttpServletRequest req,
HttpServletResponse res) throws ServletException,IOException {
....}
//注意,这儿是实现可以调用doPost的方法
public void doPodt(
HttpServletRequest req,
HttpServletResponse res) throws ServletException,IOException {
doGet((HttpServletRequest)req,(HttpServletResponse)res);}
}
public void doGet (
HttpServletRequest req,
HttpServletResponse res) throws ServletException,IOException {
....}
//注意,这儿是实现可以调用doPost的方法
public void doPodt(
HttpServletRequest req,
HttpServletResponse res) throws ServletException,IOException {
doGet((HttpServletRequest)req,(HttpServletResponse)res);}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货