The following comment has been added to this issue: Author: Jason Carreira Created: Wed, 27 Aug 2003 8:17 AM Body: This is done in beta1? This problem was fixed on 8/16. --------------------------------------------------------------------- View the issue:
http://jira.opensymphony.com/secure/ViewIssue.jspa?key=WW-274 Here is an overview of the issue: --------------------------------------------------------------------- Key: WW-274 Summary: Unable to run SimpleCounter in webwork-example.war Type: Bug Status: Assigned Priority: Major Project: WebWork Components: Examples Versions: 2.0 Assignee: Patrick Lightbody Reporter: Daigo Moriwaki Created: Wed, 27 Aug 2003 4:53 AM Updated: Wed, 27 Aug 2003 4:53 AM Environment: JDK 1.4.2, JBoss 3.2, Linux Debian Description: I can not run SimpleCounter action in webwork-example.war. Other actions are OK. I guess you want to do following: Index: src/etc/example/components.xml =================================================================== RCS file: /cvsroot/opensymphony/webwork2/src/etc/example/components.xml,v retrieving revision 1.2 diff -u -r1.2 components.xml --- src/etc/example/components.xml 2 Jul 2003 14:20:30 -0000 1.2 +++ src/etc/example/components.xml 27 Aug 2003 09:44:48 -0000 @@ -3,7 +3,7 @@ <component> <scope>session</scope> <class>com.opensymphony.webwork.example.counter.Counter</class> - <enabler>com.opensymphony.webwork.example.counter.Counter</enabler> + <enabler>com.opensymphony.webwork.example.counter.CounterAware</enabler> </component> </components> Index: src/etc/example/xwork.xml =================================================================== RCS file: /cvsroot/opensymphony/webwork2/src/etc/example/xwork.xml,v retrieving revision 1.10 diff -u -r1.10 xwork.xml --- src/etc/example/xwork.xml 2 Jul 2003 14:20:30 -0000 1.10 +++ src/etc/example/xwork.xml 27 Aug 2003 09:44:48 -0000 @@ -17,11 +17,13 @@ <interceptor name="params" class="com.opensymphony.xwork.interceptor.ParametersInterceptor"/> <interceptor name="token" class="com.opensymphony.webwork.interceptor.TokenInterceptor"/> <interceptor name="token-session" class="com.opensymphony.webwork.interceptor.TokenSessionStoreInterceptor"/> + <interceptor name="component" class="com.opensymphony.xwork.interceptor.component.ComponentInterceptor"/> <interceptor-stack name="defaultStack"> <interceptor-ref name="timer"/> <interceptor-ref name="logger"/> <!-- <interceptor-ref name="static-params"/>--> <interceptor-ref name="params"/> + <interceptor-ref name="component"/> </interceptor-stack> </interceptors> Index: src/example/com/opensymphony/webwork/example/counter/SimpleCounter.java =================================================================== RCS file: /cvsroot/opensymphony/webwork2/src/example/com/opensymphony/webwork/example/counter/SimpleCounter.java,v retrieving revision 1.4 diff -u -r1.4 SimpleCounter.java --- src/example/com/opensymphony/webwork/example/counter/SimpleCounter.java 2 Jul 2003 14:20:30 -0000 1.4 +++ src/example/com/opensymphony/webwork/example/counter/SimpleCounter.java 27 Aug 2003 09:44:49 -0000 @@ -13,7 +13,7 @@ * @author $Author: savaki $ * @version $Revision: 1.4 $ */ -public class SimpleCounter implements Action { +public class SimpleCounter implements Action, CounterAware { //~ Instance fields //////////////////////////////////////////////////////// private Counter counter; @@ -41,5 +41,9 @@ counter.incrementCount(); return SUCCESS; + } + + public void setCounter(Counter counter) { + this.counter = counter; } } --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.opensymphony.com/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork