I'm not sure if the work-around will work. Looking at the code, it doesn't appear that changing the result type after the action has executed has any effect. (*Chris*)
On Wed, Jun 18, 2008 at 6:51 AM, Adam Hardy <[EMAIL PROTECTED]> wrote: > I guessed it's not modifiable but I figured I'd ask to make sure. > > I like the work-around, hadn't thought of it. I'd probably use it if the > default result name was going to be configurable in the future (guess > there's a patch waiting to be coded there). > > For now though I just hard coded the name attribute on all my results, not > big deal. > > The reason I asked is that I'm building the example app based on a > struts-based package, so I was aiming for the ideal. > > Thanks > Adam > > > Gabriel Belingueres on 18/06/08 14:32, wrote: >> >> I don't really know if you can change this default, but here is a >> workaround: >> >> Write a custom interceptor that each time your action result is LIST, >> you change it to SUCCESS. >> >> This way you could leave your result tags untouched. However, right >> now I could not imagine the value of doing that. >> >> 2008/6/17, Adam Hardy <[EMAIL PROTECTED]>: >>> >>> Hi, >>> >>> is it possible to do this: >>> >>> <action name="category/list" >>> class="repo.CategoryAction" method="list"> >>> <result>categoryList.tile</result> >>> </action> >>> >>> for result = "LIST" rather than "SUCCESS"? - I mean I want to use LIST >>> as >>> the default when none is defined, rather than SUCCESS - I find it more >>> intuitive for my app. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]