Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Struts Wiki" for change 
notification.

The following page has been changed by Bob Lee:
http://wiki.apache.org/struts/RoughSpots

------------------------------------------------------------------------------
     <param name="namespace">/${actionNamespace}</param>
   </result>
  }}}  My point is this feature enables a new style of development, one closer 
to RoR and, IMO, easier for the newbie, without affecting anyone else.
+     * [crazybob] Assuming you have a `getResult()` method and you've defined 
a global result, your second example could look like this: {{{
+  result = ActionRedirectResult("bar", "foo");
+  return CUSTOM;
+ }}} A Ruby on Rails analog would look like this: {{{
+   public void execute() {
+     ...
+     if (foo) {
+       redirectToAction("foo", "bar");
+     }
+     else {
+       forwardToAction("tee");
+     }
+   }
+ }}} If the user doesn't call a result method, we would use an intelligent 
default. You could implement this using an interceptor and an action support 
class. However, I'm with Jason: I've never needed this and I like the 
seperation.
  
  
  == Nice to haves ==

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to