首页 > 其他分享 >3.15双人总结

3.15双人总结

时间:2023-03-15 22:34:17浏览次数:35  
标签:总结 String service request 3.15 getParameter import 双人 Method

多功能实现查找

package com.jy.web;

import com.jy.pojo.TotalStation;
import com.jy.service.Service;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.*;
import java.io.IOException;
import java.util.List;

@WebServlet("/ResearchServlet")
public class ResearchServlet extends HttpServlet {
private Service service=new Service();
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
request.setCharacterEncoding("utf-8");
String Method=request.getParameter("Method");
if(Method.equals("XLCX"))
{
String routine=request.getParameter("routine");
List <TotalStation> totalStations1=service.research1(routine);
request.setAttribute("totalStations1", totalStations1);
request.getRequestDispatcher("index.jsp").forward(request, response);
}
else if(Method.equals("ZDCX"))
{
String station=request.getParameter("station");
List <TotalStation> totalStations2=service.research2(station);
System.out.println(totalStations2);
request.setAttribute("totalStations2", totalStations2);
request.getRequestDispatcher("index.jsp").forward(request, response);
}
else if(Method.equals("SECX"))
{
String station1=request.getParameter("station1");
String station2=request.getParameter("station2");
service.research3(station1,station2);
}
}

@Override
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
this.doGet(request, response);
}
}

标签:总结,String,service,request,3.15,getParameter,import,双人,Method
From: https://www.cnblogs.com/jy-all-bug/p/17220456.html

相关文章

  • 字符串操作函数总结
    经过一段时间的学习,现在在这里写下这篇博客,以复习字符串操作函数首先我用软件画了一张图,这里面大概的介绍了字符串操作函数的用法,现在我们来详细的学习首先就是strtok函数首......
  • 每日总结 3.15
    今天实现了简单的线路查询,同一线路和不同线路的查询。下面是方法。  下面是演示:  点击查询后:  如果是在统一线路: ......
  • 每日总结2023/3/15
    今天实现了简单的线路查询,同一线路和不同线路的查询。下面是方法。  下面是演示:  点击查询后:  如果是在统一线路: ......
  • Java虚拟机详解——JVM常见问题总结
    面试必问关键词:JVM垃圾回收、类加载机制。 先把本文的目录画一个思维导图:一、Java引用的四种状态:强引用:用的最广。我们平时写代码时,new一个Object存放在堆内存......
  • 滴水 3.15 复习
    Note2023-03-15T21.26.461、返回值是如何传递的?通过寄存器或者全局地址returneax,0x1112、参数传递的本质 整数参数传递统一采用32位int行无论你是不是char类型......
  • 2023.3.15
    合作对象:粘艺凡昨天完成了数据表的建立和数据库连接今天完成了一部分dao包的编写和一些html页面,所写代码如下。其中substasion函数用于在一条线上给定两个参数,然后将他门之......
  • 3/15每日总结
    在今天我学安卓的时候,发现能建一个表但是不能建两个表,于是我通过询问同学,我发现在数据库如果第一次有错误的时候,在以下的操作中,数据库还是会错误的,进行删除,重新启动就行。......
  • 2023.3.15蓝桥杯集训·每日一题
    AcWing200.Hankson的趣味题题目描述Hanks博士是BT(Bio-Tech,生物技术)领域的知名专家,他的儿子名叫Hankson。现在,刚刚放学回家的Hankson正在思考一个有趣的问题。今天......
  • 2023武汉多校集训总结
    一共考了5场试,讲了3次课。中间时间学习了回滚莫队和带修改莫队,CDQ分治。CDQ分治是一种思想,作用是在复杂的点对关系(一般是多个参数的关系),优化一种关系。集训难度很大,主要......
  • 3.15总结
      赶快学习,再不学就跟不上进度了,能做的的事情极其有限,缺乏相关知识,学习劲头没有多少,恶性循环呗......