Main reasons for using servlet as a controller in struts.
why not jsp
Answer Posted / christ
If JSP's are using as a controller, then we should break the
rule of MVC. Which is the base for using struts. MVC is used
to divide the application into three part(model part, view
part and controller part). So that in future if we want to
change the view, then you do not need to do much work on
your logic part.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What are the steps involved in creating a strut application?
How can we handle exceptions thrown by application in Struts2?
Why aren’t the struts tags maintained as part of the jakarta taglibs project ?
How we can configured action mapping in struts?
What is the purpose of @conversionerrorfieldvalidator annotation?
Which library is provided by struts for form elements like check boxes, text boxes etc?
Is Struts Framework part of J2EE?
What is role of actionservlet?
What is the use of resourcebundle.properties file in Struts Validation framework?
How can link tag’s action attribute be used?
Does apache struts run on windows?
What is the difference between validation.xml and validator-rules.xml files in struts?
How many struts config file in a struts application?
What is the actionform?
Where should struts xml be placed?