Hey

As I was working on the new TheServerSide.com code using WebWork I 
noticed that it was very common that an action should simply redirect 
back to the original pack which linked to it. The usual example is a 
page listing objects, and a link would execute an action that updated or 
removed an object, and then redirect back to the listing. Initially I 
used the Redirect action and sent along the URL to get back, but that 
was a bit awkward.

I have now added a new standard action called Referer which is a 
subclass of Redirect and which simply redirects back to the original URL 
that invoked the action. Hence, one can now simply set "referer.action" 
as result of actions who modify the state of a page and does not have 
result data that should be shown (other than showing the initial page, 
but with updated contents).

/Rickard

-- 
Rickard Öberg
Author of "Mastering RMI"
Chief Architect, TheServerSide.com
   The Middleware Company - We Build Experts!


_______________________________________________
Webwork-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webwork-user

Reply via email to