⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 userinfoaction.java

📁 Struts+Spring+Hibernate实现的在线拍卖系统,去掉了这些组件自身的jar包
💻 JAVA
字号:
/*
 * Generated by MyEclipse Struts
 * Template path: templates/java/JavaClass.vtl
 */
package org.bestteam.web.struts.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.bestteam.domain.ActualNameAttestation;
import org.bestteam.domain.UserInfo;
import org.bestteam.service.IsExistService;
import org.bestteam.web.struts.form.UserInfoForm;

/** 
 * MyEclipse Struts
 * Creation date: 02-01-2007
 * 
 * XDoclet definition:
 * @struts.action path="/userInfo" name="userInfoForm" scope="request" validate="true"
 */
public class UserInfoAction extends Action {
	private IsExistService isExistService;
	
	public void setIsExistService(IsExistService isExistService) {
		this.isExistService = isExistService;
	}

	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response) {
		UserInfoForm userInfoForm = (UserInfoForm) form;// TODO Auto-generated method stub
		String username = userInfoForm.getUsername();
		UserInfo user = new UserInfo();
		HttpSession session = request.getSession();
		user.setUserId(new Integer(session.getAttribute("userId").toString()));
		
		boolean isActualName = isExistService.isExistActualNameAttestation(user);
		boolean isPayment = isExistService.isExistPaymentCard(user);
		
		request.getSession().setAttribute("isPayment", isPayment);		//传递支付宝状态信息
		request.getSession().setAttribute("isActualName", isActualName);	//传递实名认证状态信息
		
		return mapping.findForward("success");
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -