Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8993883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:17:44+00:00 2026-06-15T23:17:44+00:00

What is the difference between DynaActionForm and ActionForm ? Someone said DynaActionForm is not

  • 0

What is the difference between DynaActionForm and ActionForm ?

Someone said DynaActionForm is not really dynamic since you still have to restart the server after you re-configured the properties in the struts-config.xml file (or else modifications won’t be picked up)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:17:45+00:00Added an answer on June 15, 2026 at 11:17 pm

    In case of ActionForm,

    We have to provide setters and getters whenever user adds a control. The same process is repeated again and again when user creates a view.

    But, in case of DynaActionForm

    It eliminates this burden and creates the form bean itself. This way user don’t have to write setters and getters. No bean class is required for the DynaActionForm and we will declare the form beans as DynaActionForm type in struts-confing.xml. We will declare the properties and their type in the struts-config.xml

       <?xml version="1.0" encoding="ISO-8859-1" ?>
    
    <!DOCTYPE struts-config PUBLIC
     "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
     "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
    
    <struts-config>
    
      <!-- ========== Form Bean Definitions ================= -->
      <form-beans>
    
        <form-bean      name="submitForm"
                        type="hansen.playground.SubmitForm"/>
    
      </form-beans>
    
      <!-- ========== Action Mapping Definitions ============ -->
      <action-mappings>
    
        <action   path="/submit"
                  type="hansen.playground.SubmitAction"
                  name="submitForm"
                  input="/submit.jsp"
                  scope="request">
        <forward name="success" path="/submit.jsp"/>          
        <forward name="failure" path="/submit.jsp"/>          
        </action>
    
      </action-mappings>
    
    </struts-config>
    

    Update

    struts-config.xml has two sections: the form-beans section, that lists the ActionForm beans, and the action-mappings.The mapping of the request (MyActionForm.do) to a specific
    Action and ActionForm class is done in the struts-config.xml file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Difference between Map and Properties as both have key-value pair.
The difference between a JavaScript Array , and Object is not very big. In
The difference between Add-In and Integration Package is still unclear and now with Visual
difference between web services clients results in one error in one success I have
Can someone explain the difference between a C++ exception and a structured exception in
What is the difference between the two classes below? Do you have some related
Could someone explain the difference between Software Design and Software Architecture? More specifically; if
Difference between ADF initContext and prepareModel,since both preparing data by executing buisness service making
Related: Difference between CouchDB and Couchbase It is not clear if the clients and
What is the fundamental difference between Add & Commit in Solr? We have read

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.