Advanced Java Question:
Download Questions PDF

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

Answer:

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.

Download Advanced Java Interview Questions And Answers PDF

Previous QuestionNext Question
If I define a method in JSP scriplet <%..%>, where will it go after translation into a servlet?Will it be called overriding if I do not change the parameters or return type, instead throw a different exception in the method signature?