• 大小: 10.22MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-06
  • 语言: 其他
  • 标签: ssh源码  项目  

资源简介

SSH投票管理平台项目源码

资源截图

代码片段和文件信息

package com.cjg.action.admin;

import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;

import com.cjg.action.rootaction.AdminRoot;
import com.cjg.domain.Admin;

@SuppressWarnings(“serial“)
public class ChangePwd extends AdminRoot {
private static final String PWDERROR = “pwderror“;

@Override
public String execute() throws Exception {
HttpSession session = ServletActionContext.getRequest().getSession();
// 从session获得当前登录管理员信息
Admin admin = (Admin) session.getAttribute(“admin“);
// 判断旧密码是否正确
if (admin.getPassword().equals(password)) {
admin.setPassword(newpwd1);
// 更新管理员密码信息
adminService.changepwd(admin);
return SUCCESS;
} else
addActionerror(getText(“oldpswerror“));
return PWDERROR;
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       2051  2018-01-02 05:07  Votesystem\.classpath

     文件       1043  2018-01-02 05:07  Votesystem\.project

     文件        503  2018-01-02 05:07  Votesystem\.settings\.jsdtscope

     文件         57  2018-01-02 05:07  Votesystem\.settings\org.eclipse.core.resources.prefs

     文件        395  2018-01-02 05:07  Votesystem\.settings\org.eclipse.jdt.core.prefs

     文件        460  2018-01-02 05:07  Votesystem\.settings\org.eclipse.wst.common.component

     文件        345  2018-01-02 05:07  Votesystem\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2018-01-02 05:07  Votesystem\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2018-01-02 05:07  Votesystem\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件        930  2018-01-02 05:07  Votesystem\build\classes\Admin.hbm.xml

     文件       1540  2018-01-02 05:07  Votesystem\build\classes\com\cjg\action\admin\ChangePwd.class

     文件       1639  2018-01-02 05:07  Votesystem\build\classes\com\cjg\action\admin\Createadmin.class

     文件       2701  2018-01-02 05:07  Votesystem\build\classes\com\cjg\action\admin\Login.class

     文件        811  2018-01-02 05:07  Votesystem\build\classes\com\cjg\action\admin\Logout.class

     文件       1351  2018-01-02 05:07  Votesystem\build\classes\com\cjg\action\interceptors\SessionInterceptor.class

     文件       1959  2018-01-02 05:07  Votesystem\build\classes\com\cjg\action\rootaction\AdminRoot.class

     文件       2809  2018-01-02 05:07  Votesystem\build\classes\com\cjg\action\rootaction\VoteContextRoot.class

     文件       3042  2018-01-02 05:07  Votesystem\build\classes\com\cjg\action\rootaction\VoteRoot.class

     文件        879  2018-01-02 05:07  Votesystem\build\classes\com\cjg\action\rootaction\VoterRoot.class

     文件        994  2018-01-02 05:07  Votesystem\build\classes\com\cjg\action\validators\ChangePwdValidate-validation.xml

     文件        993  2018-01-02 05:07  Votesystem\build\classes\com\cjg\action\validators\ChangePwdValidate.class

     文件        986  2018-01-02 05:07  Votesystem\build\classes\com\cjg\action\validators\CreateAdminValidate-validation.xml

     文件        987  2018-01-02 05:07  Votesystem\build\classes\com\cjg\action\validators\CreateAdminValidate.class

     文件        789  2018-01-02 05:07  Votesystem\build\classes\com\cjg\action\validators\LoginValidate-validation.xml

     文件        975  2018-01-02 05:07  Votesystem\build\classes\com\cjg\action\validators\LoginValidate.class

     文件        738  2018-01-02 05:07  Votesystem\build\classes\com\cjg\action\validators\NewvoteValidate-validation.xml

     文件        873  2018-01-02 05:07  Votesystem\build\classes\com\cjg\action\validators\NewvoteValidate.class

     文件        412  2018-01-02 05:07  Votesystem\build\classes\com\cjg\action\validators\SearchVoteValidate-validation.xml

     文件        605  2018-01-02 05:07  Votesystem\build\classes\com\cjg\action\validators\SearchVoteValidate.class

     文件       1167  2018-01-02 05:07  Votesystem\build\classes\com\cjg\action\vote\AddOneVoteContext.class

............此处省略223个文件信息

评论

共有 条评论