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

What is apache struts framework?

520


What is struts2 namespace?

509


What is controller in struts2?

495


What is spring and struts in java?

508


How many instances of servlet usually run in a struts application ?

540






What is difference between spring and struts?

501


What is the use of interceptor?

518


What is the procedure of operation of a form tag?

550


What is struts in j2ee?

526


What are the steps required for setting up validator framework in struts?

559


What are the components of struts framework?

579


What does i18n interceptor?

579


Is struts mvc framework?

478


What is the difference between forwardaction and includeaction?

531


Why we use struts in java?

512