Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

RT Ticket #275: Return value for ActionMaps #5

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

RT Ticket #275: Return value for ActionMaps #5

phinjensen opened this issue Mar 25, 2013 · 1 comment

Comments

@phinjensen
Copy link
Contributor

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
Copy link
Contributor Author

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant