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 MichaelJouravlev:
http://wiki.apache.org/struts/SAF1RoughSpots

------------------------------------------------------------------------------
  
    1. '''Built-in support for RAP (Redirect After Post) pattern''' [FrankZ] 
I'm not sure how best to accomplish this, but this should be a very easy thing 
for a developer to do, the framework should do any required heavy lifting.  
Again, not so much a rough spot as it is something I think a lot of people 
would appreciate.
      * [MichaelJ] Redirect-After-Post is fully implemented in 
[http://struts.sourceforge.net/strutsdialogs/index_v1.html Struts Dialogs 1.x]. 
After Struts 1.2.9 got better dispatch action, I stopped advertising Struts 
Dialogs project, but it is still valuable in terms of samples. Check it out. 
EventActionDispatcher and !EventDispatchAction can implement 
Redirect-After-Post as well, Paul and I spent quite some time discussing how 
!EventDispatchAction can be used for both input and render phases.
+     * [MichaelJ] To simplify redirect-after-post pattern, Struts must 
implement Flash scope, that is, the scope that survives after redirect, but is 
automatically cleaned up after redirected request finishes. Currently similar 
pattern is applied to the messages queued to session scope.
  
    1. '''Pre and post-processing abilities''' [FrankZ] A developer should be 
able to specify a class and method to call before and after an Action executes, 
on a per-mapping basis.  This should be independant of modifying a chain.  
Should just amount to adding the appropriate config file changes and two 
commands to the default chain.  This is for handling things like common setup 
of view-type Actions, etc.
      * [MichaelJ] +0. I prefer having 1:1 correspondence between mapping and 
action class. With autopopulation out of the way, I can call whatever I want 
right in the beginning and at the end of execute() method. Same thing, but 
simpler, I think.

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

Reply via email to