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

📄 serviceaction.java

📁 struts+hibernate3的源程序
💻 JAVA
字号:
package org.helpsoft.actions;

import com.helpsoft.util.genelv.struts.GenericAction;
import java.text.SimpleDateFormat;
import com.helpsoft.Constants;
import org.helpsoft.servicelocator.*;
import com.helpsoft.util.genelv.struts.GenericForm;
import org.helpsoft.session.AssociatorManageService;

/**
 * Base action that has access to the service methods.
 *
 * @author  cao guangxin - www.relationinfo.com
 * @version $Revision: 1.2 $, $Date: 2005/02/20 11:31:22 $
 */
public abstract class ServiceAction extends GenericAction {

   protected static final SimpleDateFormat TIMESTAMP_FORMATTER =
         new SimpleDateFormat(Constants.TIMESTAMP_DISPLAY_FORMAT);

   protected static final SimpleDateFormat DATE_FORMATTER =
         new SimpleDateFormat(Constants.DATE_DISPLAY_FORMAT);


    /**
    * Get the service interface.
    * @return AssociatorManageService interface
    */
    public static AssociatorManageService getAssociatorManageService() {
    try {
        return (AssociatorManageService) ServiceLocator.getService(ServiceLocator.ASSOCIATORMANAGE_SERVICE);
        } catch (Exception e) {
            return null;
        }
    }
}

⌨️ 快捷键说明

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