Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deciding which phase to listen to for redirect...

evan k. stone
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
due to a goofy way in which we're handling security on the project I'm working on, I'm having to trap a request with a phase listener, perform some logic, then redirect to one of a cople of pages (the decision is based on the state of some objects in the session).

I've pretty much got that handled, but I wanted to get some advice as to which phase I should be performing this kind of action in.

It smells to me like Before Render Response is probably the appropriate place, but is there a better spot earlier in the chain?

Just looking for some best practice advice here.


  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic