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

📄 accountinfoaction.java

📁 基于Struts+Hibernate+Spring+Ajax技术开发一个简单的影院在线订票系统
💻 JAVA
字号:
/*
 * Generated by MyEclipse Struts
 * Template path: templates/java/JavaClass.vtl
 */
package com.accp.struts.action;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;

import com.accp.biz.AccountinfoBiz;
import com.accp.biz.MovieinfoBiz;
import com.accp.biz.TicketBiz;
import com.accp.entity.Accountinfo;
import com.accp.struts.form.AccountinfoForm;
import com.accp.util.page.PageInfo;

/** 
 * MyEclipse Struts
 * Creation date: 05-18-2009
 * 
 * XDoclet definition:
 * @struts.action path="/accountinfo" name="accountinfoForm" parameter="operate" scope="request" validate="true"
 * @struts.action-forward name="confirmTicket" path="/admin/confirmTicket.jsp"
 * @struts.action-forward name="listTickets" path="/admin/listTickets.jsp"
 */
public class AccountinfoAction extends DispatchAction {
	private AccountinfoBiz accountinfoBiz;
	private TicketBiz ticketBiz;
	private MovieinfoBiz movieinfoBiz;
	/*
	 * Generated Methods
	 */

	public MovieinfoBiz getMovieinfoBiz() {
		return movieinfoBiz;
	}

	public void setMovieinfoBiz(MovieinfoBiz movieinfoBiz) {
		this.movieinfoBiz = movieinfoBiz;
	}

	public TicketBiz getTicketBiz() {
		return ticketBiz;
	}

	public void setTicketBiz(TicketBiz ticketBiz) {
		this.ticketBiz = ticketBiz;
	}

	public AccountinfoBiz getAccountinfoBiz() {
		return accountinfoBiz;
	}

	public void setAccountinfoBiz(AccountinfoBiz accountinfoBiz) {
		this.accountinfoBiz = accountinfoBiz;
	}

	/** 
	 * Method execute
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return ActionForward
	 */
	public ActionForward listTickets(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response) {
		AccountinfoForm accountinfoForm = (AccountinfoForm) form;// TODO Auto-generated method stub
		Accountinfo accountinfo = accountinfoBiz.getAccountinfo(accountinfoForm.getAccountinfo());
		if(accountinfo == null) {
			return mapping.findForward("AccountOrPswErr");
		}
		List ticketList = ticketBiz.getTicketByAccountId(accountinfo.getId());
		PageInfo pageInfo = new PageInfo();
		pageInfo.setRecAccountinfo(accountinfo);
		pageInfo.setRecList(ticketList);
		request.setAttribute("pageInfo", pageInfo);
		return mapping.findForward("listTickets");
	}
}

⌨️ 快捷键说明

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