On Fri, 4 Mar 2005 13:40:15 -0500, Michael Dinowitz
<[EMAIL PROTECTED]> wrote:
> The example I have is a redirect embedded inside business logic. Call a
> page, call the object, do a bunch of stuff, have the object throw you
> somewhere else. Not dedicated, not validation, just a part of the code.

Yuck!

> I'm going to pull it out and put it into it's own method with solid
> validation and debug hooks.

Good plan!

Sounds like the business logic should either return a failure status
or throw an exception and the *caller* should deal with the redirect.
Layers, people, layers!
-- 
Sean A Corfield -- http://www.corfield.org/
Team Fusebox -- http://www.fusebox.org/
Breeze Me! -- http://www.corfield.org/breezeme
Got Gmail? -- I have 49, yes 49, invites to give away!

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197499
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to