On 4/20/05, Joe Germuska <[EMAIL PROTECTED]> wrote:I just happened to notice that there's a method on ActionMapping, "getInputForward()" which applies some config logic, while there's no corresponding method on ActionConfig. I could see where we might not directly reproduce it, since ActionConfig shouldn't depend on ActionForward -- but why is there method like
public ForwardConfig getInputForwardConfig(){}
Can you clarify where you found this? I can't find any method with this name, so I'm missing your point, I'm afraid. ;-(
ActionMapping has
public ActionForward getInputForward();
ActionConfig has no corresponding method. Thus, when one has an ActionConfig and validation has failed, and one wants to send the view back to the input, one has to either
(1) cast the ActionConfig to ActionMapping (and hope that you have one; of course in Struts these days you always do, but why have ActionConfig if we aren't going to steer towards using it instead of ActionMapping?)
or
(2) perform the logic oneself which is currently done in Actionmapping.getInputForward():
if (getModuleConfig().getControllerConfig().getInputForward()) { return (findForward(getInput())); } else { return (new ActionForward(getInput())); }
Joe
--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Narrow minds are weapons made for mass destruction" -The Ex
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]