[ http://issues.apache.org/struts/browse/WW-1423?page=comments#action_38106 ] Wendy Smoak commented on WW-1423: ---------------------------------
The error message in this report caught my eye -- "The Struts has detected... " . Fixed in r439156. > URLs with action!method.action should delegate to doAction() method > ------------------------------------------------------------------- > > Key: WW-1423 > URL: http://issues.apache.org/struts/browse/WW-1423 > Project: Struts 2 > Issue Type: Bug > Components: Actions > Affects Versions: 2.0.0 > Reporter: Matt Raible > Fix For: 2.0.0 > > > AppFuse works great with WebWork 2.2.2 and 2.2.3. I tried upgrading to > Struts 2.0.0 and found the following issue: > When I try to go to http://localhost:8080/appfuse/uploadFile!default.html, I > get the following error: > Struts Problem Report > The Struts has detected an unhandled exception: > Messages: The default() is not defined in action class > org.appfuse.webapp.action.FileUploadAction > File: com/opensymphony/xwork2/DefaultActionInvocation.java > Line number: 337 > Stacktraces > java.lang.IllegalArgumentException: The default() is not defined in > action class org.appfuse.webapp.action.FileUploadAction > I have the following in struts.properties: > struts.compatibilityMode.WebWork=true > As well as in FileUploadAction.java, I have: > public String doDefault() { > return INPUT; > } > http://www.mail-archive.com/dev%40struts.apache.org/msg24428.html > <quote from="Don Brown"> > Yes, this is true - we removed support for do* methods. Perhaps in this > one case, however, we should allow a doDefault method. Create a ticket > for it. Perhaps do* support itself should be put back in, but only be > enabled when in compatibility mode. > </quote> > I believe the do* prefix should be supported for WebWork compatibility mode - > so current WebWork users can easily upgrade to Struts 2.0.0. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
