Main reasons for using servlet as a controller in struts.
why not jsp

Answer Posted / srinu

jsp means very less code in java.and also their is no tags
for intigrate with other logic.i.e means controll with
other logic just like as connection polling,data accessing
object,persistance logic.suppose u take as jsp as
controller programmer feels lot of complexity.Hence
industry recomended struts as controller.in servlet easy
intigrate with other logic.
Industry recomended as MVC rule servlets as controller,jsp
as view layer.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we display validation errors on jsp page?

539


What is the procedure of operation of a form tag?

558


Which model components are supported by Struts?

570


In which order struts framework searches for a message bundle?

562


What is the use of web xml in struts2?

525






What is the design role played by struts?

557


What is validate() and reset() functions?

570


What is the apache struts vulnerability?

525


What is struts and why it is used?

505


Can you give an overview of how a struts application flows?

529


What is form bean in struts?

519


What is the purpose of constant tag in struts.xml?

559


Why actionservlet is singleton in struts?

598


Explain about the process of functioning of the struts program?

593


What are the life cycle methods of interceptor?

522