?? gbs_memberlistaction.java
字號:
package ACTION;
/**
* method GBS_MemberListAction.java
* created on 08-02-2004
* @author XUSHENG
* @version 1.0
*/
import java.util.ArrayList;
import java.util.HashMap;
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 COMMON.BaseDispatchAction;
import COMMON.MessageList;
import COMMON.ReturnValue;
import COMMON.SystemConstants;
import LOGIC.GBS_MemberListActionLogic;
public class GBS_MemberListAction extends BaseDispatchAction implements SystemConstants {
/**
* init page member ArrayList data
* @param mapping
* @param form
* @param request
* @param response
* @return
* @throws Exception
*/
public ActionForward init(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {
log.info("[location info]GBS_MemberListAction.init method!");
GBS_MemberListForm thisForm = (GBS_MemberListForm) form;
//get login user info from session
this.setUserInfoFromSession(request, thisForm);
ReturnValue returnValue = new ReturnValue();
MessageList errorMsg = new MessageList();
//get memberList date.
GBS_MemberListActionLogic logic =
new GBS_MemberListActionLogic(this.getDataSource(request));
returnValue = logic.getMembers(thisForm.getLoginAdminAuthority(),thisForm.getLoginUserId());
if (returnValue.isError()) {
if (returnValue.isBussinessError()) {
this.setMessage(returnValue.getMessageList());
}
return (mapping.findForward(nextview));
} else {
HashMap map = (HashMap) returnValue.getDataValue();
thisForm.setMemberCommittee((ArrayList) map.get(MENBER_COMMITTEE));
thisForm.setMemberSupport((ArrayList) map.get(MENBER_SUPPORT));
thisForm.setMemberOperation((ArrayList) map.get(MENBER_OPERATION));
thisForm.setMemberLocal((ArrayList) map.get(MENBER_LOCAL));
thisForm.setMemberSubsidiary((ArrayList) map.get(MEMBER_SUBSIDIARY));
return (mapping.findForward(nextview));
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -