1 5 package com.opensymphony.webwork; 6 7 import com.opensymphony.xwork.ActionSupport; 8 import org.apache.commons.logging.Log; 9 import org.apache.commons.logging.LogFactory; 10 11 12 18 public class ExecutionCountTestAction extends ActionSupport { 19 21 private static final Log LOG = LogFactory.getLog(ExecutionCountTestAction.class); 22 23 25 private int executionCount = 0; 26 27 29 public int getExecutionCount() { 30 return executionCount; 31 } 32 33 public String execute() throws Exception { 34 executionCount++; 35 LOG.info("executing ExecutionCountTestAction. Current count is " + executionCount); 36 37 return SUCCESS; 38 } 39 } 40 | Popular Tags |