- 博客(8)
- 收藏
- 关注
原创 指定用户登录实现操作(Servlet和jsp)
对登录页面进行操作 实现指定用户登录进行部门表操作先是首页的jsp<%@ page contentType="text/html;charset=UTF-8" language="java" %><html> <head> <%-- 设置路径 --%> <base href="http://${pageContext.request.serverName}:${pageContext.request.serverPo
2021-12-10 01:09:59
412
原创 网页对数据库进行添加操作
只具有参考价值,应该不是很正确servletpackage com.cqy.servlet;import com.cqy.dao.EmployeeDao;import com.cqy.entity.Employee;import javax.servlet.ServletException;import javax.servlet.annotation.WebServlet;import javax.servlet.http.HttpServlet;import javax.s
2021-12-07 01:04:44
473
原创 servlet查询数据库信息并输出在前端页面
BaseDao层封装的一些功能方法的实现package com.cqy.dao;import com.cqy.util.JdbcUtil;import java.lang.reflect.Constructor;import java.lang.reflect.Field;import java.sql.*;import java.util.ArrayList;import java.util.List;/** * 基础数据操作 */public class BaseDao
2021-12-07 01:01:07
3816
原创 doGet、doPost请求
根据请求参数不同返回不同的页面//doGet()请求//根据参数返回不同的页面 @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String opt = req.getParameter("opt"); if (opt.equals("a")) {
2021-12-07 00:46:54
431
原创 Servlet简单的登录验证
使用Servlet进行简单的登录验证表单提交数据到服务器,再此使用doget()方法。 @WebServlet(urlPatterns = "/login")public class Login extends HttpServlet { @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
2021-11-30 20:07:23
744
原创 Stream 按照一个字段分组求和
废话不多说,上代码public class Message { private String title; private String no; private int amount; private int month; public Message(String title, String no, int amount, int month) { this.title = title; this.no = no;
2021-11-29 00:24:24
834
原创 html css js实现最简单的计算器
先写完html 再给他添加一点样式 重点是js上代码先是html部分<div class="contioner"> <form action="" name="biaodan"> <input type="button" value="清除" class="qingchu" id="clear"> <input type="text" id="display"> .
2021-11-27 19:01:06
452
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人