[Webwork-devel] New standard action
Brought to you by:
baldree,
rickardoberg
From: Rickard <ri...@mi...> - 2002-03-11 09:31:42
|
Hey As I was working on the new TheServerSide.com code using WebWork I=20 noticed that it was very common that an action should simply redirect=20 back to the original pack which linked to it. The usual example is a=20 page listing objects, and a link would execute an action that updated or=20 removed an object, and then redirect back to the listing. Initially I=20 used the Redirect action and sent along the URL to get back, but that=20 was a bit awkward. I have now added a new standard action called Referer which is a=20 subclass of Redirect and which simply redirects back to the original URL=20 that invoked the action. Hence, one can now simply set "referer.action"=20 as result of actions who modify the state of a page and does not have=20 result data that should be shown (other than showing the initial page,=20 but with updated contents). /Rickard --=20 Rickard =D6berg Author of "Mastering RMI" Chief Architect, TheServerSide.com The Middleware Company - We Build Experts! |