what is the purpose of action servlet and action?

Answer Posted / cokekrish

The class org.apache.struts.action.ActionServlet is called
ActionServlet.This class plays the role of controller. All
the requests to the server goes thorugh the controller. It
is responsible for handling all the requests.

Action is part of Model. The purupose of Actionclass is to
translate the HttpServletRequest to the business logic. To
use Action we need to subclass and overwrite the execute()
method. all database and business processing are done here.

Is This Answer Correct ?    17 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you convert struts to springs?

542


Where can I get a copy of struts?

537


What is the purpose of @element annotation annotation?

592


What are the steps of struts installation?

565


What is the purpose of @stringlengthfieldvalidator annotation?

595






How many servlet controllers are used in a Struts Application?

507


What is life cycle of an interceptor?

542


What is the different actions available in struts?

538


What do struts do?

515


Why we use struts in java?

507


Explain architecture of struts2?

580


What is the use of struts config xml file?

479


Where should struts xml be placed?

497


What is the purpose of @emailvalidator?

553


in struts how to use hibernate with struts>

1821