Craig, 

I had thought this would be a useful way for Developers to chain actions
without generating additional forwards. Do you disagree? Is there a
problem with the implementation? I know some people have found it
useful, and have made dependencies on it. 

Or, did you just want to deal with it later? Should I take care of it
now?

-Ted.

>   -    /**
>   -     * Return an instance of the ActionForm associated with the specified
>   -     * path, if any; otherwise return <code>null</code>.
>   -     * May be used to create an ActionForm for InvokeAction.
>   -     *
>   -     * @param name path of the Action using the ActionForm bean
>   -     * @since 1.1
>   -     */
>   -    public ActionForm createActionForm(String path) {
>   -
>   -        ActionMapping mapping = findMapping(path);
>   -        String name = mapping.getName();
>   -
>   -        ActionForm form = null;
>   -
>   -        ActionFormBean formBean = findFormBean(name);
>   -        if (formBean != null) {
>   -            String className = null;
>   -            className = formBean.getType();
>   -            try {
>   -                Class clazz = Class.forName(className);
>   -                form = (ActionForm) clazz.newInstance();
>   -            } catch (Throwable t) {
>   -                form = null;
>   -            }
>   -        }
>   -
>   -        return form;
>   -
>   -    }
>   -
>   -
>   -    /**
>   -     * Directly process the Action perform associated with the
>   -     * given path.
>   -     * Return the <code>ActionForward</code> instance (if any)
>   -     * returned by the called <code>Action</code>.
>   -     * <code>createActionForm</code> may be used to create an
>   -     * ActionForm instance to pass to the Action invoked.
>   -     *
>   -     * @param action The path to the Action to invoke
>   -     * @param form The ActionForm we are processing
>   -     * @param request The servlet request we are processing
>   -     * @param response The servlet response we are creating
>   -     *
>   -     * @exception IOException if an input/output error occurs
>   -     * @exception ServletException if a servlet exception occurs
>   -     * @since 1.1
>   -     */
>   -    public ActionForward invokeAction(
>   -            String path,
>   -            ActionForm form,
>   -            HttpServletRequest request,
>   -            HttpServletResponse response)
>   -        throws IOException, ServletException {
>   -
>   -        ActionMapping mapping =
>   -            processMapping(path,request);
>   -
>   -        Action action =
>   -            processActionCreate(mapping,request);
>   -
>   -        ActionForward forward = processActionPerform(
>   -            action,mapping,form,request,response);
>   -
>   -        return forward;
>   -
>   -    }

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to