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

Answers were Sorted based on User's Feedback



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

Answer / lovish gupta

It will be written in a file calles struts-config.xml...

Is This Answer Correct ?    8 Yes 0 No

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

Answer / chetanya

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.

Thanks,
Chetanya

Is This Answer Correct ?    3 Yes 0 No

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

Answer / shrinath rodage

when we submited button that time the request first goes to
the struts-config.xml file and then search the corresponding
action class and it will perform the action and it will
respond to the browser...

Is This Answer Correct ?    0 Yes 0 No

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

Answer / sridhar

in web.xml .
we have to use the Class information in the configuration file.
class name:org.apache.struts.action.ActionServlet Class

Is This Answer Correct ?    0 Yes 2 No

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

Answer / sreenivasulu

configuration done web.xml

Is This Answer Correct ?    1 Yes 5 No

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

Answer / sreenivasulu

configuration done web.xml

Is This Answer Correct ?    2 Yes 8 No

Post New Answer

More Advanced Java Interview Questions

Urgent Openings for Java and .NET ( India, Singapore, Australia, Japan)

2 Answers   Wipro,


A user of a web application sees a jsessionid argument in the URL whenever a resource is accessed. What does this mean? a. The form must have the field jsessionid b. URL rewriting is used as the session method c. Cookies are used for managing sessions

0 Answers  


What is the use of Semaphore?

3 Answers  


how convert java file to jar files?

10 Answers   Samsung,


diff between jsp include directive and jsp action include?

4 Answers   SolutionNET,






Can a thread be a member of another thread?

2 Answers  


explain session tracking. why we used it

3 Answers   Lionbridge,


Difference between sleep and suspend?

3 Answers  


Name three subclasses of the component class?

0 Answers  


what's the main difference between unix os and linux os?

2 Answers   TCS,


What is meant by Superconductivity?

4 Answers  


What is the difference between java class and bean?

0 Answers  


Categories