Skip to content

RT Ticket #275: Return value for ActionMaps #5

Open
phinjensen opened this Issue Mar 25, 2013 · 1 comment

1 participant

@phinjensen

Created: Tue Jun 02 14:16:46 2009
Requestors: Stefan Hornburg


It should be clearly stated that a true return value is normally needed
in ActionMap's. Otherwise users get an ISE without log entry.

Regards
Racke

@phinjensen

Date: Thu Jul 16 02:21:59 2009
Author: Ethan Rowe


On Tue Jun 02 14:16:47 2009, racke wrote:

It should be clearly stated that a true return value is normally needed
in ActionMap's. Otherwise users get an ISE without log entry.

There's actually a range of behaviors to consider here:

  1. $Vend::RedoAction can be set to true by your actionmap sub, in which case the actionmap portion will be parsed again based on the catalog-relative path in $Vend::FinalPath

  2. If you want your actionmap to then be followed by standard page processing, yes, it needs to return a Perly true value

  3. If you want your actionmap to generate the response itself directly, and not do standard page processing, your actionmap should return Perly false so that do_page will not be called.

  • Ethan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.