资 源 简 介
课程教学平台设计源码,java实现 <%@ page language="java" import="java.sql.*" pageEncoding="GB18030"%> <%@page import="com.ComputerTrainingPlatform.*"%> <% //设置编码格式 request.setCharacterEncoding("GB18030"); //取到表单中用户填写的username,userpassword,userClass参数的值 String username = request.getParameter("username"); String userpassword = request.getParameter("userpassword"); System.out.println(username); System.out.println(userpassword); int userClass = Integer.parseInt(request.getParameter("userClass")); System.out.println(userClass); //判断参数是否为空,或者是空字符串,如果是返回到index.jsp界面,如果符合标准跳到相应的管理后台界面 if (username == null || username.trim().equals("") || userpassword == null || userpassword.trim().equals("")) { request.getRequestDispatch