From: Jason S. <jsw...@ya...> - 2003-03-27 02:58:38
|
--- Tony Bibbs <to...@to...> wrote: > Again, a problem I had with Phrame is all mappings and forwards were > loaded even though a very small subset was needed to process the current > request. I am not sure how much overhead loading an array really constitutes. As an alternative, these could simply be hard coded into the action. Instead of implementing: $actionForward = $actionMapping->get('index'); return $actionForward; You could instead do: $actionForward = new ActionForward('foo', APPL_URL.'?view=suchandsuch'); return $actionForward; This essentially hardcodes the values into the actions and eliminates some of the "loose coupling" benefits of Struts, but I do not think too much is lost since you are coding for one or more of the forwards anyway. Another $0.02 :) Jason __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com |