01: /*
02: * Copyright (c) 2002-2003 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.webwork;
06:
07: import com.opensymphony.xwork.ActionSupport;
08: import org.apache.commons.logging.Log;
09: import org.apache.commons.logging.LogFactory;
10:
11: /**
12: * ExecutionCountTestAction
13: *
14: * @author Jason Carreira
15: * Created Apr 18, 2003 6:17:40 PM
16: */
17: public class ExecutionCountTestAction extends ActionSupport {
18:
19: private static final Log LOG = LogFactory
20: .getLog(ExecutionCountTestAction.class);
21:
22: private int executionCount = 0;
23:
24: public int getExecutionCount() {
25: return executionCount;
26: }
27:
28: public String execute() throws Exception {
29: executionCount++;
30: LOG
31: .info("executing ExecutionCountTestAction. Current count is "
32: + executionCount);
33:
34: return SUCCESS;
35: }
36: }
|