-
-
-
-
-
Action.saveErrors(session, msg1);
Choice 3
Action.saveErrors(session, null);
Choice 4
Action.clearErrors(session, null);
Choice 5
request.getSession().saveErrors(session, null);
">What is the correct syntax for removing ActionMessages from the session context? Choice 1 Action.removeErrors(); Choice 2 ActionMessages msg1 = new ActionMessages("clear"); Action.saveErrors(session, msg1); Choice 3 Action.saveErrors(session, null); Choice 4 Action.clearErrors(session, null); Choice 5 request.getSession().saveErrors(session, null);
-
-
What is the use of ActionForm class, Describe it's Life Cycle
ActionForm class is used to capture user-input data from an HTML form and transfer it to the Action Class. ActionForm plays the role of Transport Vehicle between the presentation Tire & Business Tier.Life Cycle :1. Request received by Controller2. Create or recycle ActionForm3. Call reset()4. store ActionForm in proper scope5. populate ActionForm from Request6. Validate the ActionForm7. If errors found...
-
-
-
-
-
-
-
-
-
-
-
How can i pass info from dyna form bean to Entity Bean(CMP)
Pl any one answer
-
Struts Interview Questions
Ans