ExecutionCountTestAction.java :  » J2EE » webwork-2.2.6 » com » opensymphony » webwork » Java Open Source

Java Open Source » J2EE » webwork 2.2.6 
webwork 2.2.6 » com » opensymphony » webwork » ExecutionCountTestAction.java
/*
 * Copyright (c) 2002-2003 by OpenSymphony
 * All rights reserved.
 */
package com.opensymphony.webwork;

import com.opensymphony.xwork.ActionSupport;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;


/**
 * ExecutionCountTestAction
 *
 * @author Jason Carreira
 *         Created Apr 18, 2003 6:17:40 PM
 */
public class ExecutionCountTestAction extends ActionSupport {

    private static final Log LOG = LogFactory.getLog(ExecutionCountTestAction.class);


    private int executionCount = 0;


    public int getExecutionCount() {
        return executionCount;
    }

    public String execute() throws Exception {
        executionCount++;
        LOG.info("executing ExecutionCountTestAction. Current count is " + executionCount);

        return SUCCESS;
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.