import liu.storehouse;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
public class loginServlet extends HttpServlet {
@Override
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
String cusno = req.getParameter("cusno");
String category = req.getParameter("category");
String num = req.getParameter("num");
String cusadd = req.getParameter("cusadd");
storehouse a = new storehouse();
a.setCusNo(cusno);
a.setCategory(category);
a.setNum(Integer.parseInt(num));
a.setCusadd(cusadd);
//向主页传参
req.setAttribute("a",a);
//跳转主页index.jsp
req.getRequestDispatcher("/index.jsp").forward(req,resp);
}
/*@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
super.doPost(req, resp);
}*/
}
jsp-servlet-javabeean.zip
版权申诉
24 浏览量
2021-12-10
15:39:02
上传
评论
收藏 2.67MB ZIP 举报
拾雨_Rain
- 粉丝: 101
- 资源: 8
最新资源
- 基于mysql和python的学生选课系统【课程设计(实验报告+源码)】
- PxCook-像素大厨Windows版本安装包
- aspose-words-23.12-jdk16 有水印
- [大模型部署]在C# Winform中使用文心一言ERNIE-3.5 4K 聊天模型
- python毕业设计-基于Django+OpenCV的二维码生成与识别系统设计与实现.zip
- python毕业设计-基于Django+OpenCV的二维码生成与识别系统设计与实现+使用说明.zip
- 基于STM32单片机空气监测系统设计源码+详细文档+配套全部资料(毕业设计).zip
- rdf0412-kcu116-pcie-c-2019-1.zip(XILINX KCU116 源码)
- 基于C#语言的winform界面火车票订票系统(源码+实验报告)
- 【华为OD部分真题及讲解】华为OD部分真题及讲解
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈