Package org.apache.struts.action

Examples of org.apache.struts.action.ActionForm.reset()


        if ("request".equals(mapping.getScope()))
            request.setAttribute(formName, subForm);
        else
            request.getSession().setAttribute(formName, subForm);

        subForm.reset(mapping, request);

        /*
         * We dont want to try and populate all forms on a post, only the one
         * that has requested it. For this the form must have a hidden parameter
         * with the name of 'subForm' and the value being the form name to
View Full Code Here


                ActionForm form = InternalUtils.wrapFormBean( formMemberField.get( fc ) );

                if ( form == null ) // the pageflow hasn't filled the value yet
                {
                    form = createActionForm( mapping, request );
                    form.reset( mapping, request );
                    formMemberField.set( fc, InternalUtils.unwrapFormBean( form ) );
                }

                //
                // Store the form in the right place in the request, so Struts can see it.
View Full Code Here

                ActionForm form = InternalUtils.wrapFormBean( formMemberField.get( fc ) );
               
                if ( form == null ) // the pageflow hasn't filled the value yet
                {
                    form = createActionForm( mapping, request );
                    form.reset( mapping, request );
                    formMemberField.set( fc, InternalUtils.unwrapFormBean( form ) );
                }
               
                //
                // Store the form in the right place in the request, so Struts can see it.
View Full Code Here

                            ("formBean", config.getType()), t);
                return (null);
            }
        }
        instance.setServlet(servlet);
        instance.reset(mapping, request);
        return (instance);

    }

View Full Code Here

                ActionForm form = InternalUtils.wrapFormBean( formMemberField.get( fc ) );

                if ( form == null ) // the pageflow hasn't filled the value yet
                {
                    form = InternalUtils.createActionForm( mapping, moduleConfig, servlet, getServletContext() );
                    form.reset( mapping, request );
                    formMemberField.set( fc, InternalUtils.unwrapFormBean( form ) );
                }

                //
                // Store the form in the right place in the request, so Struts can see it.
View Full Code Here

                ActionForm form = InternalUtils.wrapFormBean( formMemberField.get( fc ) );

                if ( form == null ) // the pageflow hasn't filled the value yet
                {
                    form = InternalUtils.createActionForm( mapping, moduleConfig, servlet, getServletContext() );
                    form.reset( mapping, request );
                    formMemberField.set( fc, InternalUtils.unwrapFormBean( form ) );
                }

                //
                // Store the form in the right place in the request, so Struts can see it.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.