Answers

Question and Answer:

  Home  Advanced Java

⟩ How will the struts know which action class to call when you submit a form?

struts-config.xml in this file.

under the tag <type> absolute path of Action class

under the tag <name> name of the action form class

Both of this will be called when the desired action

mentioned under the <path> tag will be called and

struts-config.xml will call action class mentioned in the

<type> tag and also populate the fields of form class

mentioned under <name> tag.

 181 views

More Questions for you: