• 大小: 17.66MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-21
  • 语言: 其他
  • 标签: ssm  crud  验证码  

资源简介

开发的完整的学生管理系统,mybatis工具类,增删改查,附加验证码,文件上传等。咱们第七组有七八个人团队开发。

资源截图

代码片段和文件信息

package baizhi.action;

import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.OutputStream;

import javax.imageio.ImageIO;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.util.ValueStack;


public class Captcha extends ActionSupport{

public String  execute() throws IOException {
String securityCode = SecurityCode.getSecurityCode();
System.out.println(“securityCode:“+securityCode); 

ValueStack vs = ActionContext.getContext().getValueStack();
vs.setValue(“#session.code“ securityCode); 

BufferedImage image = SecurityImage.createImage(securityCode); 

HttpServletResponse response = ServletActionContext.getResponse();

OutputStream output = response.getOutputStream(); 

ImageIO.write(image “png“ output);

return null;
}
}








 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-09-06 08:28  HomeWork\
     文件        2324  2018-05-19 16:38  HomeWork\.classpath
     目录           0  2018-09-06 08:28  HomeWork\.myeclipse\
     目录           0  2018-09-06 08:28  HomeWork\.myeclipse\profiler\
     文件        1451  2018-05-19 15:42  HomeWork\.myeclipse\profiler\HomeWork on Tomcat  7.x.xml
     文件        1333  2018-05-19 15:36  HomeWork\.project
     目录           0  2018-09-06 08:28  HomeWork\.settings\
     文件         522  2018-04-25 20:38  HomeWork\.settings\.jsdtscope
     文件         159  2018-04-28 08:40  HomeWork\.settings\com.genuitec.eclipse.core.prefs
     文件         244  2018-05-19 17:02  HomeWork\.settings\org.eclipse.core.resources.prefs
     文件          52  2018-04-26 10:25  HomeWork\.settings\org.eclipse.core.runtime.prefs
     文件         364  2018-04-25 20:38  HomeWork\.settings\org.eclipse.jdt.core.prefs
     文件         483  2018-05-19 15:36  HomeWork\.settings\org.eclipse.wst.common.component
     文件         414  2018-04-25 20:38  HomeWork\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2018-04-25 20:38  HomeWork\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2018-04-25 20:38  HomeWork\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2018-09-06 08:28  HomeWork\src\
     文件        2397  2018-06-12 18:58  HomeWork\src\applicationContext.xml
     目录           0  2018-09-06 08:28  HomeWork\src\baizhi\
     目录           0  2018-09-06 08:28  HomeWork\src\baizhi\action\
     文件        1009  2018-05-19 13:18  HomeWork\src\baizhi\action\Captcha.java
     文件        2680  2018-05-19 13:18  HomeWork\src\baizhi\action\SecurityCode.java
     文件        2743  2018-05-19 13:18  HomeWork\src\baizhi\action\SecurityImage.java
     文件        1465  2018-05-22 09:11  HomeWork\src\baizhi\action\UploadAction.java
     文件        5229  2018-06-12 23:31  HomeWork\src\baizhi\action\UserAction.java
     文件        6339  2018-05-19 13:18  HomeWork\src\baizhi\action\ValidationCodeServlet.java
     目录           0  2018-09-06 08:28  HomeWork\src\baizhi\dao\
     文件         200  2018-05-21 21:16  HomeWork\src\baizhi\dao\AllclassDao.java
     文件         704  2018-06-12 17:17  HomeWork\src\baizhi\dao\AllclassDaoMapper.xml
     文件         221  2018-05-19 18:15  HomeWork\src\baizhi\dao\DepartmentDao.java
     文件         515  2018-05-21 18:53  HomeWork\src\baizhi\dao\DepartmentDaoMapper.xml
............此处省略136个文件信息

评论

共有 条评论